ActiveReports3 Request technical support
ParentReport Property
See Also  Example


Gets a reference to the parent report.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property ParentReport As ActiveReport3
Visual Basic (Usage)Copy Code
Dim instance As ActiveReport3
Dim value As ActiveReport3
 
value = instance.ParentReport
C# 
public ActiveReport3 ParentReport {get;}

Return Value

ActiveReport (Reference to the parent report object).

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

Remarks

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

See Also