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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to make report print in landscape?

Status
Not open for further replies.

beefeater267

Programmer
Apr 6, 2005
79
hi,

i'm using CE10 for a web app (C# .NET) and need to print the report in landscape.

My report template is set to landscape, however, when we print, the print dialogue (ActiveX) is set to default portrait. How can I default it to landscape?
 
Make sure you have Set the report's page layout settings on the Process -> Print Setup tab of each individual Report Object.

You sometimes need to use the "CUSTOM SETTINGS" even if you have the "Report File Default" settings set to landscape.

 
In my CR templates, I do goto File -> Printer Settings and check landscape. And I do have:

ceReport.ReportPrinterOptions.LandscapeMode = true;

ceReport.ReportPrinterOptions.PageLayout = CrystalDecisions.Enterprise.Desktop.CeReportLayout.ceCustomSettings;

And it still defaults to portrait! Any other ideas?
 
You need to manage the settings I described in the CMC (Crystal Management Console) of Crystal Enterprise - not in your web app or the Crystal Reports desktop tool.

That should fix your problem.
 
Actually, it doesn't work. I went in CMC, selected my report.. went to Process -> Print Setup

Then:

Set Layout to: Custom Setting
Then, Page Orientation: Landscape.

So, when I'm viewing the CR in my web app w/ the CR Viewer type Active X, when I use the built in Print Button, the print dialogue still comes up defaulted to landscape.

Am I missing anything?
 
Hi,
Printing is Local and is controlled by your printer settings..IIRC,unless the exact same printer is defined on the web server as you have on your PC, the local printer will come up with its default settings not the ones from the report.



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top