[]
        
(Showing Draft Content)

C1.Win.C1Preview.C1PreviewFileActions

C1PreviewFileActions Class

Encapsulates file-related operations available in preview.

Inheritance
C1PreviewFileActions
Namespace: C1.Win.C1Preview
Assembly: C1.Win.PrintPreview.8.dll
Syntax
public class C1PreviewFileActions

Constructors

Name Description
C1PreviewFileActions()

Initializes a new instance of the C1PreviewFileActions class.

C1PreviewFileActions(object, ExportOptions)

Initializes a new instance of the C1PreviewFileActions class.

Properties

Name Description
CanSaveFile

Gets a value indicating whether the current document can be saved.

Document

Gets or sets the current document.

ExportOptions

Gets or sets export options.

Methods

Name Description
FileOpen()

Shows the "open file" dialog allowing the user to select a document to open, and then opens it.

FileOpen(string)

Loads the document from a specified file. If the file does not exist uses its directory as the initial directory for the "open file" dialog.

FileOpen(string, bool)

Loads the document from a specified file. If the file does not exist uses its directory as the initial directory for the "open file" dialog.

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.

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.

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.

Events

Name Description
LongOperation

Occurs periodically during long operations (e.g. saving to disk). Allows to provide progress indication and the ability to cancel generation to the user.