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