Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "IOleCommandTarget" in [All]

Interfaces

.

public interface IOleCommandTarget

.

    //IOleCommandTarget interface from your application, it would

.

Interface IOleCommandTarget

.
Documentation
[IOleCommandTarget] on MSDN
.

    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;

Enums

.
Summary
.
Summary

 
Access PInvoke.net directly from VS: