Software Developer's Kit - ChemDraw

Send comments on this topic
Save Method
See Also 

Description

Member of ChemDraw Control.Document.

Saves changes to the file specified in the FullName property.

Syntax

Visual Basic
Public Sub Save() 

Example

Private Sub ctlChemDraw_SelectionChanged(ByVal selection _
        As ChemDrawControl10Ctl.IChemDrawSelection)
    If  selection.documents.Count = 1 Then
        Set MyDocument = ctlChemDraw.selection.Objects.Documents.Item(1)
        Label1.Caption = "Object: Document"
    End If
End Sub

Private Sub cmdSave_Click()
    myDocument.ActiveDocument.Save 
End Sub

See Also