Solved

Printing VB6 data report in landscape

Posted on 1998-09-25
2
1,144 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

920 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

16 Experts available now in Live!

Get 1:1 Help Now