ActiveReports 8
ParentReport Property
See Also  Example
GrapeCity.ActiveReports.v8 Assembly > GrapeCity.ActiveReports Namespace > SectionReport Class : ParentReport Property

Glossary Item Box

Gets a reference to the parent report.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property ParentReport As SectionReport
C# 
public SectionReport ParentReport {get;}

Property Value

ActiveReport (Reference to the parent report object).

Remarks

This property is available when the report is running as a subreport of another report.

Example

C#Copy Code
private void detail_Format(object sender, System.EventArgs eArgs)
{
    this.detail.AddBookmark(((TextBox)(this.ParentReport.Sections["detail"].Controls["txtCategoryName"])).    
        Text + "\\" + this.txtProductName.Text);
}
Visual BasicCopy Code
Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format
    Me.Detail1.AddBookmark(CType(Me.ParentReport.Sections("Detail1").Controls("txtCategoryName"),  _
        TextBox).Text + "\" + Me.txtProductName.Text)
End Sub

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also