Quantcast
Channel: Our ComponentOne » All Posts
Viewing all articles
Browse latest Browse all 14170

Reply To: Questions about Reporting tool

$
0
0

Hello Mandar,

As you must have read in the documentation, XML report is loaded into a SectionReport object and the document of this object is used to export the report to various formats.

Since you must have created a 'report.cs’ file, you will have to create an object of this class to be able to view/export/print it.
The exporting code will look as follows:

//Assuming your class name is Myreport

Myreport rpt = new Myreport();
rpt.Run();
// Export the report in PDF format.
GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport pdfExport1 = new GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport();
pdfExport1.Export(rpt.Document, "path to save the document report.pdf");
// Export the report in TIFF format.
GrapeCity.ActiveReports.Export.Image.Tiff.Section.TiffExport tiffExport1 = new GrapeCity.ActiveReports.Export.Image.Tiff.Section.TiffExport();
tiffExport1.Export(rpt.Document, "path to save the document report.tiff"); 

Best Regards,
Tuhina


Viewing all articles
Browse latest Browse all 14170

Trending Articles



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