ActiveReports Developer 7
LoadReport Method
See Also  Example
GrapeCity.ActiveReports.Design.Win.v7 Assembly > GrapeCity.ActiveReports.Design Namespace > Designer Class : LoadReport Method

Glossary Item Box

Loads an existing report XML layout into the designer.

Overload List

OverloadDescription
LoadReport(FileInfo)Loads an existing report XML layout from the specified file name into the designer.  
LoadReport(Stream)Loads an existing report XML layout from the specified Stream into the designer.  
LoadReport(XmlReader,DesignerReportType)Loads existing report XML layout into the designer.  

Example

C#Copy Code
// SetReportViaStream - sets a report design stream to the Designer
public System.IO.Stream ReportViaStream
{
    set
    {
        this.ardMain.LoadReport(value);
    }
    get
    {
        System.IO.Stream _stream = new System.IO.MemoryStream();
        this.ardMain.SaveReport(_stream);
        _stream.Position = 0;
        return _stream;
    }
}
Visual BasicCopy Code
'SetReportViaStream - sets a report design stream to the Designer
Public Property ReportViaStream() As System.IO.Stream
    Get
        Dim _stream As New System.IO.MemoryStream()
        Me.ardMain.SaveReport(_stream)
        _stream.Position = 0
        Return _stream
    End Get
    Set(ByVal Value As System.IO.Stream)
        Me.ardMain.LoadReport(Value)
    End Set
End Property

See Also