Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting Printer Bins

Status
Not open for further replies.

SqueakinSweep

Programmer
Jun 20, 2002
945
GB
How is it possible to switch between paper sizes. Im trying to programatically select the paper size from a printer which has A3 and A4 sizes in

I know its something to do with the System.Drawing.Printers namespace, but Im struggling to figure out how it all fits together.

It has been a long and tiring day. Could anyone offer a helping hand?

Sweep
...if it works dont mess with it
 
It's somewhere in the printersettings but you have to iterate throught them to find the correct one since they are specific for each printer and can have different names.
this will give you the different names

Code:
for inttemp = 0 to pagesetupdialog1.PrinterSettings.PaperSizes.count -1
   textbox1.text = pagesetupdialog1.PrinterSettings.PaperSizes(0).papername
next


Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top