PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.4.8 Assembly / C1.Win.C1Preview Namespace / C1PreviewFileActions Class / FileOpen Method / FileOpen(String) Method
The name of the file to open.

In This Topic
    FileOpen(String) Method
    In This Topic
    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.
    Syntax
    'Declaration
     
    Public Overloads Function FileOpen( _
       ByVal fileName As String _
    ) As Object
    public object FileOpen( 
       string fileName
    )

    Parameters

    fileName
    The name of the file to open.

    Return Value

    The opened document or null if operation was cancelled or there was an error while loading the document.
    See Also