private void ExportToPNG() { // A path to export a report. string reportPath = "C:\\Windows\\Temp\\test.png"; // Create a report instance. TvListReportcs report = new TvListReportcs(); // Get its Image export options . ImageExportOptions imageOptions = report.ExportOptions.Image; // Export the report to Image. imageOptions.Format = ImageFormat.Png; report.ExportToImage(reportPath); StartProcess(reportPath); // Show the result. }
TvListReportcs CreateReport1() { TvListReportcs report = new TvListReportcs(); report.Sinav_id.Value = SinavSelectedValue(1); // Set Image-specific export options. report.CreateDocument(); return report; }