ActiveReports 8
SaveReport Method
See Also  Example
GrapeCity.ActiveReports.Design.Win.v8 Assembly > GrapeCity.ActiveReports.Design Namespace > Designer Class : SaveReport Method

Glossary Item Box

Saves a report XML layout to the filename or stream specified.

Overload List

OverloadDescription
SaveReport(FileInfo)Saves a report layout as an XML file to the specified file name.  
SaveReport(Stream)Saves a report layout as an XML file to the specified Stream.  
SaveReport(XmlWriter)Saves a report XML layout to the writer.  

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

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