See Also

Document Class  | Document Members  | Overload List  | SaveOptions  | RdfFormat Enumeration

Language

Visual Basic

C#

Show All

stream
Specifies the Stream object where the document should be saved.
fmt
Uses the RdfFormat enumeration to specify the file format in which to save the report.
options

Uses the SaveOptions enumeration to specify the compression to use on the document.

See Also Languages ActiveReports.Viewer Send feedback to Data Dynamics

Save(Stream,RdfFormat,SaveOptions) Method

Saves the Document content to a stream in the specified file format with the specified compression.

[Visual Basic]
Overloads Public Sub Save( _    ByVal stream As Stream, _    ByVal fmt As RdfFormat, _    ByVal options As SaveOptions _ )
[C#]
public void Save(    Stream stream,    RdfFormat fmt,    SaveOptions options );

Parameters

stream
Specifies the Stream object where the document should be saved.
fmt
Uses the RdfFormat enumeration to specify the file format in which to save the report.
options

Uses the SaveOptions enumeration to specify the compression to use on the document.

Example

[C#] 

private void Form1_Load(object sender, System.EventArgs e) 
{     
    System.IO.MemoryStream strm = new System.IO.MemoryStream();     
    rptMemoryStream rpt = new rptMemoryStream();     
    rpt.Run();     
    rpt.Document.Save(strm, DataDynamics.ActiveReports.Document.RdfFormat.AR20, DataDynamics.ActiveReports.Document.SaveOptions.Compressed);     
    byte[] theBytes = new byte[strm.Length];     
    strm.Read(theBytes, 0, (int)strm.Length);     
    strm.Position =0;   
}

[Visual Basic] 

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim strm As New System.IO.MemoryStream()
    Dim rpt As New rptMemoryStream()
    rpt.Run()
    rpt.Document.Save(strm, DataDynamics.ActiveReports.Document.RdfFormat.AR20, DataDynamics.ActiveReports.Document.SaveOptions.Compressed)
    Dim theBytes(strm.Length) As Byte
    strm.Read(theBytes, 0, Int(strm.Length))
    strm.Position = 0
End Sub

See Also

Document Class  | Document Members  | Overload List  | SaveOptions  | RdfFormat Enumeration

 

 


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