Solved

Cannot set the Printer Orientation

Posted on 2004-09-23
12
352 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 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
Independent Software Vendors: 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!

 

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

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…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

732 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