PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.8 Assembly / C1.Win.C1Preview.Design Namespace / SampleC1PrintDocument Class / Load Method / Load(String,C1DocumentFormatEnum) Method
The source file name.
The document persistence format to use.

In This Topic
    Load(String,C1DocumentFormatEnum) Method
    In This Topic
    Loads the current document from a file.
    Syntax
    'Declaration
     
    Public Overloads Sub Load( _
       ByVal fileName As String, _
       ByVal documentFormat As C1DocumentFormatEnum _
    ) 
    public void Load( 
       string fileName,
       C1DocumentFormatEnum documentFormat
    )

    Parameters

    fileName
    The source file name.
    documentFormat
    The document persistence format to use.
    See Also