See Also

ActiveReport Class  | ActiveReport Members

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

ParentReport Property

Gets a reference to the parent report.

[Visual Basic]
Public ReadOnly Property ParentReport As ActiveReport
[C#]
public ActiveReport ParentReport {get;}

Return Type

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#] 

private void Detail_Format(object sender, System.EventArgs eArgs) 

    this.Detail.AddBookmark(((TextBox)(this.ParentReport.Sections["Detail"].Controls["txtCategoryName"])).     
        Text + "\\" + this.txtProductName.Text); 
}

[Visual Basic] 

Private Sub Detail_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail.Format
    Me.Detail.AddBookmark(CType(Me.ParentReport.Sections("Detail").Controls("txtCategoryName"), _
        TextBox).Text + "\" + Me.txtProductName.Text)
End Sub

See Also

ActiveReport Class  | ActiveReport Members

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.