PrintDocument for WPF | ComponentOne
C1.WPF.PrintDocument.4.6.2 Assembly / C1.C1Preview Namespace / C1PrintDocument Class / FromFile Method / FromFile(String,C1DocumentFormatEnum) Method
The name of the file from which to load the document.
The document persistence format to use.

In This Topic
    FromFile(String,C1DocumentFormatEnum) Method
    In This Topic
    Creates a new instance of the C1PrintDocument class, and loads the document from the specified file.
    Syntax
    'Declaration
     
    Public Overloads Shared Function FromFile( _
       ByVal fileName As String, _
       ByVal documentFormat As C1DocumentFormatEnum _
    ) As C1PrintDocument
    public static C1PrintDocument FromFile( 
       string fileName,
       C1DocumentFormatEnum documentFormat
    )

    Parameters

    fileName
    The name of the file from which to load the document.
    documentFormat
    The document persistence format to use.

    Return Value

    The C1PrintDocument that was created.
    See Also