在Word&中禁用指向远程资源的链接微软幻灯片软件。 [英] Disabling links to remote resource in Word & Power Point.

查看:97
本文介绍了在Word&中禁用指向远程资源的链接微软幻灯片软件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Word&中是否有任何设置Power Point互操作com接口禁用远程链接?


它适用于Excel工作簿。  检查  https:// msdn .microsoft.com / en-in / library / microsoft.office.interop.excel.workbooks.open.aspx

 

工作簿打开(
string 文件名,
对象UpdateLinks,....

如果我们将0传递给UpdateLinks,则意味着永远不会更新任何链接(包括外部链接,DDE等)。

我在寻找Word& Power Point的类似选项。

任何帮助?







解决方案

您好,


>>如果我们将0传递给UpdateLinks,它意味着永远不会更新任何链接(包括外部链接,DDE等)。


0表示打开工作簿时不会更新外部引用(链接)。


如果你想对Word和PowerPoint做同样的事情,你可以使用
Options.UpdateLinksAtOpen Property(Word)
 和
LinkFormat.AutoUpdate属性(PowerPoint)


对于Word,将Options.UpdateLinksAtOpen设置为在Document_Open事件中为false以禁用自动更新。

 Private Sub Document_Open()
Options.UpdateLinksAtOpen = False
End Sub

对于PowerPoint,我们可以将LinkFormat.AutoUpdate设置为ppUpdateOptionManual,然后它不会提示更新。


如果要在Presentation打开时设置属性,请创建一个加载项并将Auto_Open宏用于注册表事件处理程序。请访问


将事件与应用程序对象一起使用


VBA Powerpoint - 自动运行并在后台运行

 Private Sub App_PresentationOpen( ByVal Pres As Presentation)
For Each sld In Pres.Slides
For each sh in sld.Shapes
if sh.Type = msoLinkedOLEObject Then
sh.LinkFormat.AutoUpdate = ppUpdateOptionManual
结束如果
下一个
下一个
结束子

问候,


Celeste


Is there any setting in Word & Power Point interop com interface to disable remote links?

It is available for Excel workbooks. Check https://msdn.microsoft.com/en-in/library/microsoft.office.interop.excel.workbooks.open.aspx

Workbook Open( string Filename, Object UpdateLinks, ....

If we pass 0 to UpdateLinks, it means never update any links (including exteral links, DDE and so on).

I am looking for similar options for Word & Power Point as well.

Any help?




解决方案

Hello,

>>If we pass 0 to UpdateLinks, it means never update any links (including exteral links, DDE and so on).

0 means external references (links) will not be updated when the workbook is opened.

If you want to do the same for Word and PowerPoint, you could use Options.UpdateLinksAtOpen Property (Word) and LinkFormat.AutoUpdate Property (PowerPoint)

For Word, set Options.UpdateLinksAtOpen to false in the Document_Open event to disable autoupdate.

Private Sub Document_Open()
Options.UpdateLinksAtOpen = False
End Sub

For PowerPoint, we could set LinkFormat.AutoUpdate into ppUpdateOptionManual, then it would not prompt to update.

If you want to set the property when Presentation opens, please create an add-in and use Auto_Open macro to registry event handlers. Please visit

Use Events with the Application Object

VBA Powerpoint - Auto run on open and run in the background

Private Sub App_PresentationOpen(ByVal Pres As Presentation)
For Each sld In Pres.Slides
    For Each sh In sld.Shapes
        If sh.Type = msoLinkedOLEObject Then
        sh.LinkFormat.AutoUpdate = ppUpdateOptionManual
        End If
    Next
Next
End Sub

Regards,

Celeste


这篇关于在Word&中禁用指向远程资源的链接微软幻灯片软件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆