[]
        
(Showing Draft Content)

C1.Win.C1Preview.C1PreviewPane.FileSave

FileSave Method

FileSave()

Saves the currently loaded document, allowing the user to select the file name and the output format, using the ExportOptions specified on the current preview pane.

Declaration
public bool FileSave()
Returns
Type Description
bool

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.

FileSave(string, ExportProvider)

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.

ExportOptions specified on the current preview pane are used when saving the document.

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

The output file name.

ExportProvider exportProvider

The ExportProvider to use.

Returns
Type Description
bool

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.