Document Constructor (String, FileFormat, String, Boolean)
|
Initializes a new instance of the Document class with the specified file name, file format, password, and whether to use the new engine.
Namespace:
Spire.Doc
Assembly:
Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public Document(
string fileName,
FileFormat type,
string password,
bool useNewEngine
)
Public Sub New (
fileName As String,
type As FileFormat,
password As String,
useNewEngine As Boolean
)
public:
Document(
String^ fileName,
FileFormat type,
String^ password,
bool useNewEngine
)
new :
fileName : string *
type : FileFormat *
password : string *
useNewEngine : bool -> Document
Parameters
-
fileName
-
Type:
System
String
The name of the document file.
-
type
-
Type:
Spire.Doc
FileFormat
The file format of the document.
-
password
-
Type:
System
String
The password required to open the document, if any.
-
useNewEngine
-
Type:
System
Boolean
A boolean indicating whether to use the new engine for processing the document.
See Also