Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Changing printing orientaion in runtime

Posted on 2003-11-06
6
Medium Priority
?
319 Views
Last Modified: 2010-05-03
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!

0
Comment
Question by:zolpo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 28

Expert Comment

by:vinnyd79
ID: 9693773
Have you tried:

Printer.Orientation = vbPRORLandscape
0
 
LVL 1

Author Comment

by:zolpo
ID: 9693798
Hi,
I tried this, but it didnt work
Thanks
0
 
LVL 28

Expert Comment

by:vinnyd79
ID: 9693803
Can you post the code you are using to print?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 1

Author Comment

by:zolpo
ID: 9693897
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
 
LVL 5

Accepted Solution

by:
fantasy1001 earned 375 total points
ID: 9699242
0
 
LVL 1

Author Comment

by:zolpo
ID: 9709507
fantasy Thanx a lot!
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question