InvokeControl Method [Office 2003 SDK Documentation]
The InvokeControl method specifies actions to perform when a user clicks a hyperlink, button, or document fragment in the Document Actions task pane. Applies to controls that are specified as C_TYPE_LINK, C_TYPE_BUTTON, C_TYPE_DOCUMENTFRAGMENT, and C_TYPE_DOCUMENTFRAGMENTURL.
Applies to
Syntax
[Visual Basic 6.0]
Private Sub ISmartDocument_InvokeControl(ByVal ControlID As Long, ByVal ApplicationName As String, ByVal Target As Object, ByVal Text As String, ByVal Xml As String, ByVal LocaleID As Long)
[Visual Basic .NET]
Public Sub InvokeControl(ByVal ControlID As Integer, ByVal ApplicationName As String, ByVal Target As Object, ByVal [Text] As String, ByVal Xml As String, ByVal LocaleID As Integer) Implements Microsoft.Office.Interop.SmartTag.ISmartDocument.InvokeControl
[C#]
public void ISmartDocument.InvokeControl(int ControlID, string ApplicationName, object Target, string Text, string Xml, int LocaleID)
[Visual C++ 6.0]
STDMETHOD(InvokeControl)(INT ControlID, BSTR ApplicationName, IDispatch * Target, BSTR Text, BSTR Xml, INT LocaleID)
[Visual C++ .NET]
STDMETHOD(InvokeControl)(int ControlID, BSTR ApplicationName, LPDISPATCH Target, BSTR Text, BSTR Xml, int LocaleID)
Parameters
ControlID Represents the ID number assigned to a control in the ControlID property.
ApplicationName Specifies the name of the application. You can use the ApplicationName parameter to customize a single smart document DLL to provide smart document actions in multiple Microsoft Office applications.
Target Specifies the Microsoft Word or Microsoft Excel Range object that represents the XML element for which the action is defined.
Text The text contained in the XML element with which the control is associated.
Xml Specifies the XML element, including the markup and data, with which the control is associated.
LocaleID Represents the language setting of the application. You can use the LocaleID parameter to specify different actions for multiple languages in a smart document.