Solved

Cannot set the Printer Orientation

Posted on 2004-09-23
12
338 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
 

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
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.

 

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

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

Suggested Solutions

Title # Comments Views Activity
Controlling which port to download from 4 72
Prevent user closing word document opened with VB6 6 67
clicking a shape in a frame array vb6 3 40
MsgBox 4 48
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
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…

863 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

27 Experts available now in Live!

Get 1:1 Help Now