Solved

Printing VB6 data report in landscape

Posted on 1998-09-25
2
1,159 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
ID: 1496428
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
ID: 1496429
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Macro which automatically sends attachment to Outlook 14 69
MsgBox 2 54
Visual Studio 2005 text editor 10 38
Zip Folders Using Chilkat Routines 1 37
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…

776 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