![]() |
|
![]() | ||
|
Subject:
VB.Net - Change Printer paper size from Letter to Legal
Category: Computers > Programming Asked by: softcom-ga List Price: $2.00 |
Posted:
23 Dec 2002 14:28 PST
Expires: 24 Dec 2002 09:49 PST Question ID: 132860 |
I have a program that I'm working that requires a form to be printed on legal paper. Below is some code that I'm using that changes the orientation to landscape, displays the Print Dialog and then the Print Preview. The problem is that I want some code that will change the paper size to legal. Right now the user can change it manually through the Print Dialog box, but this particular print out is always going to be legal size. I still need the Print Dialog so that the user can choose which printer will be used. Thanks Code: Dim ppd As New PrintPreviewDialog() Dim pd As New PrintDocument() Dim pd1 As New PrintDialog() AddHandler pd.PrintPage, AddressOf pdoc_PrintPage pd.DefaultPageSettings.Landscape = True pd1.Document = pd pd1.ShowDialog() ppd.Document = pd ppd.ShowDialog() |
![]() | ||
|
There is no answer at this time. |
![]() | ||
|
There are no comments at this time. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |