[]
Generates the report output that could be then printed, displayed in the viewer, or exported to an external document.
public void Run()
var sectionReport = new GrapeCity.ActiveReports.SectionReport();
XmlTextReader xtr = new XmlTextReader(reportName);
sectionReport.LoadLayout(xtr);
sectionReport.Document.Printer.PrinterName = String.Empty;
sectionReport.Run();
IDocumentExport documentExportEx = new GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport();
using (var stream = new FileStream(fileName, FileMode.Create))
documentExportEx.Export(sectionReport.Document, stream);
Type | Condition |
---|---|
LicenseException | Thrown if a component cannot be licensed. |
ReportException | Thrown if something is wrong with the report structure. |
Generates the report output that could be then printed, displayed in the viewer, or exported to an external document.
public void Run(bool syncDocument)
Type | Name | Description |
---|---|---|
bool | syncDocument | A bool value that determines whether to execute UI events. Set to |
This method should be used only inside WindowsForms applications in the UI thread (to ensure it won't be blocked long time).
var sectionReport = new GrapeCity.ActiveReports.SectionReport();
XmlTextReader xtr = new XmlTextReader(reportName);
sectionReport.LoadLayout(xtr);
sectionReport.Document.Printer.PrinterName = String.Empty;
sectionReport.Run(true);
IDocumentExport documentExportEx = new GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport();
using (var stream = new FileStream(fileName, FileMode.Create))
documentExportEx.Export(sectionReport.Document, stream);
Type | Condition |
---|---|
LicenseException | Thrown if a component cannot be licensed. |
ReportException | Thrown if something is wrong with the report structure. |