ActiveReports 11
Report Property (Designer)
Example 

GrapeCity.ActiveReports.Design.Win.v11 Assembly > GrapeCity.ActiveReports.Design Namespace > Designer Class : Report Property
Returns a reference to the designer's report object.
Syntax
'Declaration
 
Public Property Report As Object
public object Report {get; set;}

Property Value

ActiveReport

Remarks
This report object is used to gain access to the layout and controls properties.
Example
public object NewReport(string name)
{    
    try
    {
	 this.ardMain.NewReport();   
	  GrapeCity.ActiveReports.SectionReport rpt = (GrapeCity.ActiveReports.SectionReport)this.ardMain.Report;
      rpt.Document.Name = name;
      return this.ardMain.Report;
	 }
        
    catch(GrapeCity.ActiveReports.ReportException)
    {
        MessageBox.Show("Error occurred while creating new report", "Error in Diamond Reports");
        return null;
    }
    
}
Public Function NewReport(ByVal name As String) As Object Implements IPlugInHost.NewReport
    Try
        Me.ardMain.NewReport()
        Me.ardMain.Report.Document.Name = name
        Return Me.ardMain.Report
    Catch ex As GrapeCity.ActiveReports.ReportException
        MessageBox.Show("Error occurred while creating new report", "Error in Diamond Reports")
        Return Nothing
    End Try
End Function
See Also

Reference

Designer Class
Designer Members