PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.8 Assembly / C1.Win.C1Preview Namespace / C1PreviewPane Class / FileOpen Method / FileOpen() Method

In This Topic
    FileOpen() Method
    In This Topic
    Shows a file open dialog, allows the user to select a C1DX or C1D file, and loads the selected file into the current preview pane. If an exception occurs while loading the file, an error message is displayed, and the method returns false.
    Syntax
    'Declaration
     
    Public Overloads Function FileOpen() As Boolean
    public bool FileOpen()

    Return Value

    true if the file was successfully loaded, false if an error occurred or the user cancelled the dialog.
    Remarks
    If a handler is assigned to the C1PreviewPane.Error event, that handler is invoked but no message is shown to the user.
    See Also