Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 7846

Refreshing ReportDocument without reloading data from database

$
0
0

Hi,

 

I'm using "Crystal Reports for Visual Studio" version 13.0.13.1597, more specific CrystalReportViewer and ReportDocument.

How do I get the report to refresh when I change the paper orientation?

For instance: I show the user the PageSetupDialog, user switches from Portrait to Landscape. After the dialog is closed, I give the report these new settings:

this.report.PrintOptions.CopyFrom(pageSetupDialog.PrinterSettings, pageSetupDialog.PageSettings);

 

Now the preview should update the report to show it (for instance) in landscape. To do this, I'm using viewer.RefreshReport() right now. But this also triggers that the data is retrieved from the database again.

Is there any way to trigger a reformatting (or "layout update") of the report without the need of also querying the database again?

 

Thanks,

Markus


Viewing all articles
Browse latest Browse all 7846

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>