Creates a new instance of the C1PrintDocument class,
and loads the document from the specified file.
Namespace:
C1.C1PreviewAssembly: C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
C# |
---|
public static C1PrintDocument FromFile( string fileName, C1DocumentFormatEnum documentFormat ) |
Visual Basic |
---|
Public Shared Function FromFile ( _ fileName As String, _ documentFormat As C1DocumentFormatEnum _ ) As C1PrintDocument |
Parameters
- fileName
- Type: System..::..String
The name of the file from which to load the document.
- documentFormat
- Type: C1.C1Preview..::..C1DocumentFormatEnum
The document persistence format to use.