Changing printing orientaion in runtime

Hi,
I'm using VB6 with access97,
I created a report and I want to print it.
The report width is larger than the paper width,
How can I change the printer's settings from my code, inorder
to change the paper orientation to landscape (during runtime only) ??
Thanx a lot!

LVL 1
zolpoAsked:
Who is Participating?
 
fantasy1001Commented:
0
 
vinnyd79Commented:
Have you tried:

Printer.Orientation = vbPRORLandscape
0
 
zolpoAuthor Commented:
Hi,
I tried this, but it didnt work
Thanks
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
vinnyd79Commented:
Can you post the code you are using to print?
0
 
zolpoAuthor Commented:
Hi,

myReport.Show
This is the code that shows the report (simple as that), if my printer's orientation setting are not set
to landscape the report wont show, and I get an error that the report's
width is too large,
When the report is displayed there's a button that allows to print it, and this is
what i'm using to print the report,
( before I used
myReport.PrintReport True, rptRangeAllPages,
but I dont need this,)
thanks,
0
 
zolpoAuthor Commented:
fantasy Thanx a lot!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.