Software Developer's Kit - ChemDraw

Send comments on this topic
ExportDataTypes Property
See Also 

Description

Member of ChemDrawCtl.

Returns all data types that can be exported.

Property type

Read-only property

Syntax

Visual Basic
Public Property ExportDataTypes() As DataTypes

Return Type

Remarks

A DataType object defines a data type, which is an extension, a MIME type and a flag indicating whether it is valid.

Example

Private Sub cmdCommand1_Click() 
     Dim #Counter As Integer 
     Open CurDir() & "\myLog.doc" for Output as #1
     Dim myDataType As DataType, i As Integer, s As String  
    'sends to printer all the Export Data Types
     Print #1 "Export data types are: " 
     Counter = 0
     For  Each myDataType In ChemDrawCtl1.ExportDataTypes
          s = myDataType.MIME
          If  myDataType.Extension <> "" Then
              s = s & " (" & myDataType.Extension & ")"
          End If
          Print #1, Counter & vbTab & s 
          Counter = Counter + 1
     Next myDataType 
     Close #1
 End Sub

See Also