Saves the currently loaded document into the specified fileName.
If fileName is null or empty, or if
exportProvider is null,
shows the file save dialog allowing the user to select
the file name and output format.
Namespace:
C1.Win.C1PreviewExportOptions specified on the current preview pane are used when saving the document.
Assembly: C1.Win.C1Report.2 (in C1.Win.C1Report.2.dll)
Syntax
C# |
---|
public bool FileSave( string fileName, ExportProvider exportProvider ) |
Visual Basic |
---|
Public Function FileSave ( _ fileName As String, _ exportProvider As ExportProvider _ ) As Boolean |
Parameters
- fileName
- Type: System..::..String
The output file name.
- exportProvider
- Type: ExportProvider
The ExportProvider to use.
Return Value
true if the file was saved, false if an error occurred or if the user cancelled the dialog.Remarks
If a handler is assigned to the Error event,
that handler is invoked but no message is shown to the user.