Solved

Changing printing orientaion in runtime

Posted on 2003-11-06
6
317 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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 125 total points
ID: 9699242
0
 
LVL 1

Author Comment

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

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

739 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