cancel
Showing results for 
Search instead for 
Did you mean: 

Mixed Page Orientation in Report

0 Kudos

Hi there,

I'm working on a report which spans multiple pages and has mixed page orientation. At design time I'm able to design, preview and export the report successfully including the landscape page.

The preview of the report at run-time (loading the report with crviewer) looks okay but when I print the report, using the print icon, the landscape page orientation falls to be portrait and the landscape page cuts into two pages. Facing the same problem when the report is being exported to PDF.

Is there a way I can navigate through individual pages and set the page orientation and print? Expecting the same code to work for export as well.

Here is the sample code I’m using (VB6.0).

Set objApplication = New CRAXDRT.Application  
Set objReport = objApplication.OpenReport(strReport)  
'Logic to bind data goes here using DataTable and CrystalComObject  
crvwr.ReportSource = objReport 
crvwr.DisplayGroupTree = False 
crvwr.EnableGroupTree = False  
crvwr.EnableDrillDown = False  
crvwr.ViewReport

Any help is greatly appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

No, RDC did not have the ability to support section orientation, it was added in after XI R2 in CR Designer and SDK.

Only option to use that ability when printing is to upgrade your app to VS 2010 -> 2017 and use the CR .NET SDK from here:

https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads

Don

0 Kudos

Thank you don.williams for the reply. I will try to accommodate all sections in Portrait, though it cannot give the satisfactory result.

Answers (0)