veneficuss
IS-IT--Management
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.
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.