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

How to set the printer orientation page programmatically ?

Status
Not open for further replies.

sisan

Programmer
Joined
Jan 9, 2002
Messages
39
Location
ID
I'm writing an app and it needs to print both landscape and portrait orientation print report.

But I have a problem, how to set it by program ?
I've tried to do it with :

Printer.Orientation = 1 'to set it portrait and
Printer.Orientation = 2 'to set it landscape

before the datareport shown, but it does'nt work.

Anybody could help me?
Thank you
 
Well from my expiriant you need to write
datareport.Orientation = 1 or 2.
if you get an error that this property is not recognise then you have
to downlaod sp4 from microsoft (its fix some VB bugs )

 
Suggest you use SP5
Let me know if this helps
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top