Cannot set the Printer Orientation

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!
atoshkAsked:
Who is Participating?
 
moduloConnect With a Mentor Commented:
PAQed with no points refunded (of 500)

modulo
Community Support Moderator
0
 
mlmccCommented:
Is the PRINT an icon on the report or your own button?

Was the report built as Landscape?

mlmcc
0
 
Erick37Commented:
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
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
atoshkAuthor Commented:
Yes... It is my own button and the report is built as Landscape.
0
 
atoshkAuthor Commented:
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
 
mlmccCommented:
>>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
 
atoshkAuthor Commented:
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
 
mlmccCommented:
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
 
atoshkAuthor Commented:
I want to see if there is anything to do with Windows 2000 version? It is SP2.
Is it a bug for SP2?
0
 
mlmccCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.