ActiveReports.Viewer3 Request technical support
Save(String,RdfFormat,SaveOptions) Method
See Also  Example


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.

Saves the report document to the specified file using the specified file format with the specified compression.

Syntax

Visual Basic (Declaration) 
Overloads Public Sub Save( _
   ByVal fileName As String, _
   ByVal fmt As RdfFormat, _
   ByVal options As SaveOptions _
) 
Visual Basic (Usage)Copy Code
Dim instance As Document
Dim fileName As String
Dim fmt As RdfFormat
Dim options As SaveOptions
 
instance.Save(fileName, fmt, options)
C# 
public void Save( 
   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

C#Copy Code
private void btnSave_Click(object sender, System.EventArgs e)
{
   arv.Document.Save(Application.StartupPath +
"\\Document.rdf", DataDynamics.ActiveReports.Document.RdfFormat.AR20, DataDynamics.ActiveReports.Document.SaveOptions.Compressed);
}
Visual BasicCopy Code
Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
    arv.Document.Save(Application.StartupPath & "\Document.rdf", DataDynamics.ActiveReports.Document.RdfFormat.AR20, DataDynamics.ActiveReports.Document.SaveOptions.Compressed)
End Sub

See Also