Microsoft KB Archive/931418: Difference between revisions
(importing KB archive) |
(No difference)
|
Latest revision as of 18:36, 18 July 2020
Article ID: 931418
Article Last Modified on 2/6/2007
APPLIES TO
- Microsoft Office InfoPath 2007
- Microsoft Visual Studio 2005 tools for the 2007 Microsoft Office System
SYMPTOMS
If a managed Microsoft Component Object Model (COM) add-in for Microsoft Office InfoPath 2007 does not keep a reference to the Application.Events object, application events may not occur.
WORKAROUND
To work around this issue, follow these steps to keep a reference to the Application.Events object:
Note The following steps use Microsoft Visual C#.
Add the following member variable to the add-in:
private Microsoft.Office.Interop.InfoPath.ApplicationEventsClass events;
Add the following code example to the OnStartupComplete method.
events = (Microsoft.Office.Interop.InfoPath.ApplicationEventsClass)applicationObject.Events;
Note When you no longer need a reference to this object, make sure that you add code to release the reference to the object from memory.
STATUS
This behavior is by design.
Additional query words: IP2007 InfoPath2007
Keywords: kbexpertiseinter kbtshoot kbprb KB931418