Solved

Printing VB6 data report in landscape

Posted on 1998-09-25
2
1,113 Views
Last Modified: 2013-12-25
How do I print a VB6 data report in landscape mode?
0
Comment
Question by:TomMiller
2 Comments
 
LVL 1

Accepted Solution

by:
kacklehorn earned 50 total points
Comment Utility
There is no way to do this without user intervention. If this is not a concern then you can set the "Show Dialog" option of the Printreport to True.

For example: rptMyReport.PrintReport True, rptRangeAllPages

This will call up a print Dialog window where landscape can be selected.
0
 

Author Comment

by:TomMiller
Comment Utility
If Data Report is laid out so that report is wider than 8.5 inches, following code will generate error:
         Report width is larger than paper width  

Printer.PaperSize = vbPRPSLetter
Printer.Orientation = vbPRORLandscape
 
rptMyReport.PrintReport True, rptRangeAllPages



0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now