Powerpoint issues

C

cduden

Reposting for one of my developers.....

I'm developing an add in with C#(VS.NET 2003) for a few Office apps. Events
in both Excel 2K and Word 2K fire correctly. PowerPoint's OnConnect event is
firing and I am successfully wiring the event ( OnPresentationOpen ), but it
never fires. I've also tried wiring the OnWindowActivate event with the same
result. There are no exceptions being thrown, so I can only assume that the
wireup is happening as it should.

I've also tried installing it as Just Me( settings in HKCU ), disabling the
Tools->Macros->Security->Trust all installed add-ins and templates( propmts
me to allow mscoree.dll macros ), ensured that macro security is set to
Medium.

VS.NET 2003, C#, Office 2000, Windows 2000.
 
C

Chris Jensen [MSFT]

Hello CDuden,

With Microsoft Visual Studio .NET, you cannot use delegates to sink events
with PowerPoint. PowerPoint uses the IDispatch interface to fire events. To
correctly sink the events, the Visual C# .NET application must use the
IConnectionPointContainer and IConnectionPoint interfaces. The receiving
application must also know the DISPIDs of the events to sink. These DISPIDs
are not listed in PowerPoint's type library, but are listed in the sample
code in the Microsoft Knowledge Base article cited below.

Please see this article.

308825 HOWTO: Handle PowerPoint Events With Visual C# .NET
http://support.microsoft.com/?id=308825

I hope this will explain why you're not seeing PowerPoint events fire.

Chris Jensen (Microsoft Corporation)
 
C

cduden

Excellent, appreciate the quick reply Chris. I will have my guy get on it
right away.

Thanks,
C Duden
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top