GrapeCity.ActiveReports.Document.v8 Assembly > GrapeCity.ActiveReports.Document Namespace > SectionDocument Class > Save Method : Save(Stream,RdfFormat,SaveOptions) Method |
Uses the SaveOptions enumeration to specify the compression to use on the document.
'Declaration Public Overloads Sub Save( _ ByVal stream As System.IO.Stream, _ ByVal fmt As RdfFormat, _ ByVal options As SaveOptions _ )
public void Save( System.IO.Stream stream, RdfFormat fmt, SaveOptions options )
Uses the SaveOptions enumeration to specify the compression to use on the document.
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, GrapeCity.ActiveReports.Document.Section.RdfFormat.AR20, GrapeCity.ActiveReports.Document.Section.SaveOptions.Compressed); byte[] theBytes = new byte[strm.Length]; strm.Read(theBytes, 0, (int)strm.Length); strm.Position =0; }
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, GrapeCity.ActiveReports.Document.Section.RdfFormat.AR20, GrapeCity.ActiveReports.Document.Section.SaveOptions.Compressed) Dim theBytes(strm.Length) As Byte strm.Read(theBytes, 0, Int(strm.Length)) strm.Position = 0 End Sub