We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Change Printer Paper Size @ runtime VB6

LeDaouk
LeDaouk asked
on
Medium Priority
1,828 Views
Last Modified: 2010-05-03
hi experts

how can i change the printer paper size @ run time in visual basic 6.
a sample, or code will be aapreciated.

Thanks
Comment
Watch Question

Commented:
Use PaperSize property, like this:

Printer.PaperSize = vbPRPSA3 'Sets paper size to A3

Search MSDN for more constants

Author

Commented:
u can use this when u r using the printer object like printer.print "BLA BLA BLA..."
I want to resize the paper before that I run a data report
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.