OpenDocument Method (IApplication) Send Feedback
See Also 
Doc[out]
Document
PathName
Path and file name of document to open
Option
Mode in which to open the document as defined in dsDocumentOpenOption_e
Obsolete. Superseded by IApplication::OpenDocument2.

Syntax

Visual Basic 
Function OpenDocument( _
   ByVal PathName As System.String, _
   ByVal Option As dsDocumentOpenOption_e _
) As Document
C# 
Document OpenDocument( 
   System.string PathName,
   dsDocumentOpenOption_e Option
)
JavaScript 
OpenDocument( 
   PathName : String,
   Option : String
) : dsDocument
COM native C++ 
HRESULT OpenDocument( 
   BSTR PathName,
   dsDocumentOpenOption_e Option,
   IDocument** Doc
) 
C++ 
DSRESULT OpenDocument( 
   const dsString& PathName,
   dsDocumentOpenOption_e Option,
   dsDocument** Doc
) 

Parameters

PathName
Path and file name of document to open
Option
Mode in which to open the document as defined in dsDocumentOpenOption_e
Doc[out] or Return Value
Document
 

See Also

Availability

DraftSight V1R1