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

API for printer?

Status
Not open for further replies.

markask

Programmer
Apr 28, 2005
167
0
0
GB
Hi,

Using VB code, how to set the paper size for the printer?

Thank you in advance.
 
Using the Printer object:

Printer.PaperSize = constant

where the constant is made up of:

vbPRPS

follwed by the paper size

e.g.
A4 = vbPRPSA4
Letter = vbPRPSLetter

Hope this helps
 
Thank you for your help.

I didn't explain clearly :(

What I need is to set the printer properties in VB so that when using printer from other applications we can use those properties.
 
Trickier

Check out CassandraR's links to her FAQs on this subject in thread222-812231
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top