定义 Sharepoint 2010 中的默认打开行为 +具有自定义 Web 部件的 Office Web Apps
我正在使用 Office Web Apps 运行 Sharepoint 2010。默认情况下,任何 .doc、.ppt 等类型的文档都将在浏览器中从文档库中打开。这很好,但是我使用的 Web 部件会拉入 XML 提要,该提要显示搜索引擎结果列表,其中包含指向 Word 和 PPT 文档的 URL 链接。
我希望这些链接的行为方式与文档库中的行为方式相同(在浏览器中打开),但系统会提示用户下载这些文件。是否可以在 Sharepoint 中规定这种行为?
I am running Sharepoint 2010 with Office Web Apps. By default, any document of type .doc, .ppt, etc... will open within the browser from the document library. This is fine, however I am using a web part that is pulling in an XML feed that displays a search engine result list that contains URL links to Word and PPT documents.
I would like to have these links behave the same way as they do in the document library (open in browser), however the user is prompted to download these files instead. Is it possible to dictate this behavior in Sharepoint?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,我认为除非文档托管在 SharePoint 中并且激活 Office Web 应用程序功能,否则这是不可能的。浏览器内的行为是通过此服务器端功能实现的。我假设您获得的搜索引擎派生链接通常不是 SharePoint 托管文档。
可以在浏览器中打开文档,但这是客户端设置,取决于客户端操作系统。您说您想从 SharePoint 控制它,但我想不出任何方法可以做到这一点。
Unfortunately I don't think this is possible unless the documents are hosted in SharePoint and the Office Web Applications feature is activated. The in-browser behaviour is made possible by this server-side feature. I assume that the search-engine derived links you are getting will not, in general, be SharePoint hosted documents.
It is possible to open documents in the browser, but this is a client setting and will depend on the client operating system. You say you want to control this from SharePoint, and I can't think of any way you can do this.