PrintDocument for WinForms | ComponentOne
C1.PrintDocument.6 Assembly / C1.C1Preview Namespace / C1PrintDocument Class / FromFile Method / FromFile(String) Method
The name of the file from which to load the document.

In This Topic
    FromFile(String) Method
    In This Topic
    Creates a new instance of the C1PrintDocument class, and loads the document from the specified file. The persistence format (C1DocumentFormatEnum.C1d or C1DocumentFormatEnum.C1dx) is determinated by the file extension. If the format cannot be determined by the extension, the C1DocumentFormatEnum.C1d format is used.
    Syntax
    'Declaration
     
    Public Overloads Shared Function FromFile( _
       ByVal fileName As String _
    ) As C1PrintDocument
    public static C1PrintDocument FromFile( 
       string fileName
    )

    Parameters

    fileName
    The name of the file from which to load the document.

    Return Value

    The C1PrintDocument that was created.
    See Also