Software Developer's Kit - ChemDraw

Send comments on this topic
Open Method
See Also 
Path
Indicates the path where the file is located.
ViewOnly
Indicates whether the file will be ViewOnly or not.

Description

Member of ChemDrawCtl.

Opens a local file.

Syntax

Visual Basic
Public Function Open( _
   ByVal Path As String, _
   ByVal ViewOnly As Boolean _
) As Boolean

Parameters

Path
Indicates the path where the file is located.
ViewOnly
Indicates whether the file will be ViewOnly or not.

Example

Dim myDocument As ChemDrawControlCtl11.Document

Private Sub cmdOpen_Click() 
   'opens and sets document
    ctlChemDraw.Open CurDir() & "\FileName2.cdx", False
    Set myDocuments = ctlChemDraw.ActiveDocument
End Sub

See Also