[]
Gets or sets a value indicating the parent report.
[Browsable(false)]
public SectionReport ParentReport { get; }
Type | Description |
---|---|
SectionReport | A SectionReport object that references the parent report. |
Allows to access to parent report from subreport.
var sectionReport = new GrapeCity.ActiveReports.SectionReport();
XmlTextReader xtr = new XmlTextReader(reportName);
sectionReport.LoadLayout(xtr);
sectionReport.Document.Printer.PrinterName = String.Empty;
sectionReport.Script = @"public void ActiveReport_ReportStart() {if (rpt.ParentReport != null) throw new Exception("The report was not designed to be subreport!")}";
sectionReport.Run();