ActiveReports.Document Assembly > DataDynamics.ActiveReports.Document Namespace > Document Class > Save Method : Save(Stream,RdfFormat,SaveOptions) Method |
Uses the SaveOptions enumeration to specify the compression to use on the document.
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, 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; }
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
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
Document Class
Document Members
Overload List
SaveOptions
RdfFormat Enumeration