Solved

Cannot set the Printer Orientation

Posted on 2004-09-23
12
345 Views
Last Modified: 2013-12-26
I am using VB6 with SP6.
Default setting of the orientation is Portrait
I have set the DataReport.Orientation=rptOrientLandscape.

It is good when I view the DataReport.
When I click Print, the setting is Portrait.

It works in some PCs but it just doen't work in the others.
The PC running the program are in Windows 2000 SP4.

What is the problem?

Thanks in advance!
0
Comment
Question by:atoshk
12 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 12132811
Is the PRINT an icon on the report or your own button?

Was the report built as Landscape?

mlmcc
0
 
LVL 32

Expert Comment

by:Erick37
ID: 12137061
See:

PRB: Report Width is Larger than the Paper Width
http://support.microsoft.com/support/kb/articles/Q197/9/15.ASP

and

SAMPLE: PageSet.exe Programmatically Changes Default Printer Orientation
http://support.microsoft.com/default.aspx?scid=kb;EN-US;198901

Hope it helps!
0
 

Author Comment

by:atoshk
ID: 12140956
Yes... It is my own button and the report is built as Landscape.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

Author Comment

by:atoshk
ID: 12294604
Is there anything to do with the Visual Basic Run-time file?

Does the machine change the orientation if VB6 SP6 run-time is installed?

How to check which VB run-time version is running?

0
 
LVL 100

Expert Comment

by:mlmcc
ID: 12294792
>>How to check which VB run-time version is running?
Same way with most programs - HELP --> ABOUT VB

Here is a link on how to change the printer settings
http://support.businessobjects.com/communityCS/FilesAndUpdates/PrinterSettings.zip.asp

mlmcc
0
 

Author Comment

by:atoshk
ID: 12295826
How about the machine without Visual Stuido? How to check the VB version and SP version?

And I am using DataReport rather than Crystal Report. I can't use those settings that CR provides.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 12297219
Sorry about the reference to the Crystal article.  I had been responding to Crystal question and notifs and didn't go back up an read the qustion.

DLLs can be checked through Windows Explorer.
Navigate to the DLL
Right click
Select PROPERTIES
Select the VERSION tab

mlmcc
0
 

Author Comment

by:atoshk
ID: 12335364
I want to see if there is anything to do with Windows 2000 version? It is SP2.
Is it a bug for SP2?
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 12336254
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12989021
PAQed with no points refunded (of 500)

modulo
Community Support Moderator
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

809 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