Application_PresentationBeforeSave Issue

  • Thread starter IGS_Support - Martin
  • Start date
I

IGS_Support - Martin

Hi all,

We are currently writing a shared add-in for word, excel & powerpoint 2007
that restricts the saving of certain documents by setting the Cancel value to
true in each applications "before save" event.

All is working fine except when the add-in is installed into PowerPoint 2007
on an XP machine with Office 2007 and Office Live 1.4 Add-in installed, if we
allow the save everything is fine, as soon as we set Cancel=true and return
to Powerpoint, powerpoint then raises the "Encounted a problem" window. If we
remove the Office Live add-in everything works ok again. Just wondered if
anyone else has had this issue. Word & Excel work fine.

Event Handler Setup:
ppointApp.PresentationBeforeSave += new
Microsoft.Office.Interop.PowerPoint.EApplication_PresentationBeforeSaveEventHandler(Application_PresentationBeforeSave);

All we have to do to cause the problem:
public void
Application_PresentationBeforeSave(Microsoft.Office.Interop.PowerPoint.Presentation ppres, ref bool Cancel)
{
Cancel=true;
}

Thanks in advance for any help
Martin
 

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