Software Developer's Kit - ChemDraw

Send comments on this topic
DocumentsDirectory Property
See Also 

Description

Member of ChemDrawControl.Preferences.

Sets and returns the directory that the Open and Save dialogs will default to.

Property type

Read-write property

Syntax

Visual Basic
Public Property DocumentsDirectory() As String

Return Type

String

Remarks

Sets and returns the directory that the Open and Save dialogs will default to, if they are set to default to a specific directory.

Example

'Modifies a value of preferences 
 Private Sub cmdApplication_click()
     ctlChemDraw.ActiveDocument.Activate
     Dim myApp As ChemDrawControl11Ctl.Application
     Set myApp = ctlChemDraw.Application
     myApp.Preferences.DocumentsDirectory = "\directory\files"
 End Sub

See Also