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!

Printer Object in Windows XP ( Papersize and Orientation)

Status
Not open for further replies.

WFadloun

Programmer
Aug 18, 2003
42
AE
Hello all

here is my Problem
in windowsxp if you try to use printer.papersize =256 ( user defiend) it will return an error because this property is not supported on windows xp
after search MSKB I found that to send a custom paper size to printer you have to create a form and add it to SYSTM printing forms then you can use it and here is a link to this article
this article helped me and I can now print on any papersize ,,,
but the problem is that I can't change the orientation to landscape
- if trying to set orientation before set the form the width and height will be replaced and the printer prints in portrait mode
- if trying to set orientation after setting the form the printer papersize will be reset to A4 SIZE and it prints in right way (landscape )

please help me
how to set orientation to selected form
thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top