print problem?°O° select printer

Scanzee

Member
Joined
May 26, 2007
Messages
23
Programming Experience
1-3
I have a little problem with the code i haver written.
When I want to print something it always uses the standard printer, even when I selecten an other printer in the printfiledialog.
How can I select another printer then the default printer.

thanks
 
Assign the PrintDocument to be printed to the PrintDialogs Document property, in designer if you only have one PrintDocument, or code dynamically before showing the dialog if you choose between several documents. If you are printing multiple PrintDocuments in one call you have to transfer the PrinterSettings from the printer dialog to the documents.
 
Now this is how it has to work...
I have a label printer for small labels...
I also have a label printer for big labels...
How can I choose between those two printers?
Which code do I use?
 
You don't have to use code. Just select printer in printer dialog, if you have assigned the PrintDocument to it will work.
 
I'm worried for asking but I'm a total noob in those thing...
How do you assign dialog to document?
I have tried several things, but without success.
 
Assign the PrintDocument to be printed to the PrintDialogs Document property
Select the dialog component and go to the properties window where you find the Document property and select your PrintDocument as its value.
 
Back
Top