on 01-20-2019 6:34 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.