Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Changing printing orientaion in runtime

Posted on 2003-11-06
6
Medium Priority
?
320 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
  • 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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

782 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