Reports for WinForms | ComponentOne
C1.Win.C1Report.4 Assembly / C1.Win.C1Preview Namespace / C1PreviewPane Class / FileSave Method / FileSave(String,ExportProvider) Method
The output file name.
The C1.C1Preview.Export.ExportProvider to use.

In This Topic
    FileSave(String,ExportProvider) Method
    In This Topic
    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.

    Syntax
    'Declaration
     
    Public Overloads Function FileSave( _
       ByVal fileName As String, _
       ByVal exportProvider As ExportProvider _
    ) As Boolean
    public bool FileSave( 
       string fileName,
       ExportProvider exportProvider
    )

    Parameters

    fileName
    The output file name.
    exportProvider
    The C1.C1Preview.Export.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.
    See Also