[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.SectionReport.Document

Document Property

Document

Gets a value representing the report output that can be printed, displayed in the viewer or exported to an external document.

Declaration
[Browsable(false)]
public SectionDocument Document { get; }
Property Value
Type Description
SectionDocument

A SectionDocument instance.

Remarks

Allows to modify already rendered document or specify "Printer" properties.

Examples
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);