【问题标题】:How to bypass PowerPoint 2007 PresendationBeforeSave如何绕过 PowerPoint 2007 PresendationBeforeSave
【发布时间】:2012-10-12 02:58:12
【问题描述】:

我在绕过 MS Office PowerPoint 2007 中的 Application_PresentationBeforeSave 事件时遇到了一些问题

void Application_PresentationBeforeSave(Microsoft.Office.Interop.PowerPoint.Presentation Pres, ref bool Cancel)

在这种情况下,我需要使用文件的 byte[] 内容更新 Web 服务。 但此时,该文件并未保存。没有调用 PresentationAfterSave fx 事件。

我需要某种方式在保存后再次调用该事件。 有人说我需要创建一个线程,因为保存然后更新或其他方式。这是迄今为止最糟糕的解决方案(但确实是唯一的解决方案),还有更好的解决方案吗?

//丹尼斯

【问题讨论】:

  • 您是否尝试过 PresentationSave 而不是 PresentationBeforeSave?
  • 谢谢,成功了。我不知道为什么我确实看到了那个事件:S 你能提供一个答案,所以我可以关闭这个问题。
  • 为什么您没有看到该活动的答案?对此无能为力。我在 PPT 的 VBA IDE 中查看对象浏览器中的事件。
  • 您需要通过在页面底部推送“Answar you question”来添加您的答案:)

标签: office-interop powerpoint-2007


【解决方案1】:

我认为,您正在寻找的是 PresentationSave 而不是 PresentationBeforeSave 事件。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-10-27
    • 2010-10-05
    • 2011-04-01
    相关资源
    最近更新 更多