[]
        
(Showing Draft Content)

C1.Win.C1Preview.C1PreviewFileActions.FileSave

FileSave Method

FileSave(string, ExportProvider, bool)

Saves (exports) the current document in the specified file. If fileName is empty or specifies a directory, the user can select a file name in a "save file" dialog. If specified, exportProvider determines the save/export format, otherwise the file extension is used.

Declaration
public bool FileSave(string fileName, ExportProvider exportProvider, bool showErrorMessage)
Parameters
Type Name Description
string fileName

The target file name.

ExportProvider exportProvider

The export provider to use.

bool showErrorMessage

If true, error message is shown if an exception occurs, otherwise the exception is rethrown.

Returns
Type Description
bool

true if the current document was saved, false if operation was cancelled, or if showErrorMessage is true and an error occurred while saving the document.

FileSave(string, ExportProvider)

Saves (exports) the current document in the specified file. If fileName is empty or specifies a directory, the user can select a file name in a "save file" dialog. If specified, exportProvider determines the save/export format, otherwise the file extension is used.

Declaration
public bool FileSave(string fileName, ExportProvider exportProvider)
Parameters
Type Name Description
string fileName

The target file name.

ExportProvider exportProvider

The export provider to use.

Returns
Type Description
bool

true if the current document was saved, false otherwise.

FileSave()

Saves (exports) the current document in the specified file. The user can select a file name in a "save file" dialog. The save/export format is determined by the file extension.

Declaration
public bool FileSave()
Returns
Type Description
bool

true if the current document was saved, false otherwise.