Desktop Functions: Smart Device Functions:
|
Search Results for "IOleCommandTarget" in [All]Interfacespublic interface IOleCommandTarget
//IOleCommandTarget interface from your application, it would
Interface IOleCommandTarget
public interface IOleCommandTarget
//IOleCommandTarget interface from your application, it would Here is some complete code for the two classes that are required to fully utilize the IOleCommandTarget COM interface as referenced on http://msdn.microsoft.com/en-us/library/office/aa701079(v=office.12).aspx#infopath2007hostinginfopathforms_notavailable . I am posting this becasue we all know how MS likes to make links and pages disappear from time to time. While they are still valid, you can get example projects at: http://www.microsoft.com/en-us/download/details.aspx?id=21356 InfoPath2007UsingIOLECommands.exe and InfoPath2007UsingIOLECommandsCOM.exe. Happy InfoPathing! If there is such a thing. The happy part that is...
//import the IOLECommandTarget interface to perform IOLE commands
//IOLECommandTarget is registered in the registry
private interface IOleCommandTarget
//Get a IOLECommandTarget object form the ActiveX control
IOleCommandTarget commandTarget = _infoPathControl.GetOcx() as IOleCommandTarget;
IOleCommandTarget commandTarget = _infoPathControl.GetOcx() as IOleCommandTarget; Enums3: OLECMDID
|