Share via


_Global.DDEInitiate Method

Opens a dynamic data exchange (DDE) channel to another application, and returns the channel number.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Function DDEInitiate ( _
    App As String, _
    Topic As String _
) As Integer
'Usage
Dim instance As _Global
Dim App As String
Dim Topic As String
Dim returnValue As Integer

returnValue = instance.DDEInitiate(App, _
    Topic)
int DDEInitiate(
    string App,
    string Topic
)

Parameters

  • App
    Type: System.String
    Required String. The name of the application.
  • Topic
    Type: System.String
    Required String. The name of a DDE topic— for example, the name of an open document— recognized by the application to which you're opening a channel.

Return Value

Type: System.Int32

Remarks

Dynamic data exchange (DDE) is an older technology that is not secure. If possible, use a more secure alternative to DDE.

If it's successful, the DDEInitiate method returns the number of the open channel. All subsequent DDE functions use this number to specify the channel.

See Also

Reference

_Global Interface

_Global Members

Microsoft.Office.Interop.Word Namespace