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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB.NET Printing - Choosing Legal Sized Paper

Status
Not open for further replies.

veneficuss

IS-IT--Management
May 29, 2002
16
0
0
US
I am trying to automatically tell the program to print using legal paper instead of letter paper. When i use a pagesetupdialog to set the page size as legal and transfer those settings to the printdocument it works beautifully. However I cannot seem to make this choice programatically, whithout bringing up the dialog box. PLEASE HELP.

This code works because i had called upon the pagesetupdialog
-----------------------------------------------------
Dim pd As New System.Drawing.Printing.PrintDocument()
AddHandler pd.PrintPage, AddressOf pd_PrintTest
pd.PrinterSettings = PrintDialog1.PrinterSettings
pd.DefaultPageSettings = PageSetupDialog1.PageSettings
pd.Print()
------------------------------------------------------
I tried to create a custom paperkind that had the same dimensions as the legal paper, but to no avail.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top