Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiled reports print in wrong orientation 1

Status
Not open for further replies.

MarshaP

Programmer
May 4, 2001
31
US
We have several compiled reports that run on different workstations on different printers. The reports are set up as landscape, but when they are run on the workstations, they print portrait. I am using version 8.0. I followed the instructions on the web site for the same problem with version 5, but that didn't help. The user can change the orientation on the printer setup, but they do many reports and it isn't until after it prints the wrong way that they realize they have to change the orientation. Any suggestions?
 
I have never gotten a clear answer to this one, but you can try the following. It worked for one of my customers. You might get a better answer from someone else.

Create a new printer instance on each PC called "report printer" and set it's default properties to landscape. Now, on the development PC, create a "Report Printer", and set the reports to that printer before compiling. The "report printer" can be any printer, but has to have the exact same name so that CR will find it first. Ken Hamady, On-site/Phone Crystal Reports Training/Consulting
Quick Reference Guide to using Crystal in VB
 
I was having the same issue and this is what I did to solve it. When compiling a report it creates two additional files, the reportname.crf and the reportname.exe. The .crf file is the key here. Run the compiled report and ensure that it's in landscape or however you'd like it and then go to the .crf file and make it a read only file. This should lock the report to that specification that the last user (you) set it up as. Since we had multiple users with multiple O/S and printers, the orientation would get, inadvertently, changed frequently...this solved our problem. Hope it works for you, as well.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top