?
Solved

Cannot set the Printer Orientation

Posted on 2004-09-23
12
Medium Priority
?
358 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
12 Comments
 
LVL 101

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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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 101

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 101

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 101

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Suggested Courses
Course of the Month10 days, 21 hours left to enroll

770 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