Saves (exports) the current document in the specified file. If is empty or specifies a directory, the user can select a file name in a "save file" dialog. If specified, determines the save/export format, otherwise the file extension is used.
'Declaration
Public Overloads Function FileSave( _
ByVal As System.String, _
ByVal As ExportProvider, _
ByVal As System.Boolean _
) As System.Boolean
public System.bool FileSave(
System.string ,
ExportProvider ,
System.bool
)
Parameters
- fileName
- The target file name.
- exportProvider
- The export provider to use.
- showErrorMessage
- If true, error message is shown if an exception occurs, otherwise the exception is rethrown.
Return Value
true if the current document was saved, false if operation was cancelled, or if is true and an error occurred while saving the document.