?
Solved

Printing VB6 data report in landscape

Posted on 1998-09-25
2
Medium Priority
?
1,422 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 100 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
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…
Suggested Courses
Course of the Month15 days, 5 hours left to enroll

839 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