Google Answers Logo
View Question
 
Q: VB.Net - Change Printer paper size from Letter to Legal ( No Answer,   0 Comments )
Question  
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()
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

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 Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy