ActiveReports 9
Save(String,RdfFormat,SaveOptions) Method
Example 

File path where the document will be saved.
Uses the RdfFormat enumeration to specify the file format in which to save the report.

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

Saves the report document to the specified file using the specified file format with the specified compression.
Syntax
'Declaration
 
Public Overloads Sub Save( _
   ByVal fileName As System.String, _
   ByVal fmt As RdfFormat, _
   ByVal options As SaveOptions _
) 
public void Save( 
   System.string fileName,
   RdfFormat fmt,
   SaveOptions options
)

Parameters

fileName
File path where the document will 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
private void btnSave_Click(object sender, System.EventArgs e)
{
    arv.Document.Save(Application.StartupPath + "\\Document.rdf", GrapeCity.ActiveReports.Document.Section.RdfFormat.AR20, GrapeCity.ActiveReports.Document.Section.SaveOptions.Compressed);
}
Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
    arv.Document.Save(Application.StartupPath & "\Document.rdf", GrapeCity.ActiveReports.Document.Secction.RdfFormat.AR20, GrapeCity.ActiveReports.Document.Section.SaveOptions.Compressed)
End Sub
See Also

Reference

SectionDocument Class
SectionDocument Members
Overload List
SaveOptions Enumeration

 

 


Copyright © 2016 GrapeCity, inc. All rights reserved

Support Forum