_Application.DDERequest Method

Uses an open dynamic data exchange (DDE) channel to request information from the receiving application, and returns the information as a string.

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

Syntax

'Declaration
Function DDERequest ( _
    Channel As Integer, _
    Item As String _
) As String
'Usage
Dim instance As _Application
Dim Channel As Integer
Dim Item As String
Dim returnValue As String

returnValue = instance.DDERequest(Channel, _
    Item)
string DDERequest(
    int Channel,
    string Item
)

Parameters

  • Item
    Type: System.String
    Required String. The item to be requested.

Return Value

Type: System.String

Remarks

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

When you request information from the topic in the server application, you must specify the item in that topic whose contents you're requesting. In Microsoft Excel, for example, cells are valid items, and you refer to them by using either the "R1C1" format or named references.

Microsoft Excel and other applications that support DDE recognize a topic named "System." Three standard items in the System topic are described in the following table. Note that you can get a list of the other items in the System topic by using the SysItems item.

Item in System topic

Effect

SysItems

Returns a list of all the items in the System topic.

Topics

Returns a list of all the available topics.

Formats

Returns a list of all the Clipboard formats supported by Microsoft Word.

See Also

Reference

_Application Interface

_Application Members

Microsoft.Office.Interop.Word Namespace