Dave C
May 1st, 2003, 07:27 AM
I need to print some text with a network printer from my VB.NET application. All the Printer methods from VB6 are gone and instead we have this incredibly complex PrintDocument control.
So far I have put a PrintDialog control and PrintDocument Control on the form. The user can select which printer to use, etc with the PrintDialog. One of the properties is the PrintDocument object. After that, I'm lost.
Examples I've seen so far are extremely complicated. Can someone please direct me to a tutorial or example of using this control to do some simple formatted text?
Or maybe a snippet of code here? Just to print "Hello World"?
Thanks.
So far I have put a PrintDialog control and PrintDocument Control on the form. The user can select which printer to use, etc with the PrintDialog. One of the properties is the PrintDocument object. After that, I'm lost.
Examples I've seen so far are extremely complicated. Can someone please direct me to a tutorial or example of using this control to do some simple formatted text?
Or maybe a snippet of code here? Just to print "Hello World"?
Thanks.