简体   繁体   English

下载而非查看 Office 文件

[英]Office file is downloaded rather than viewed

My setup: I have installed and configured Office Online Server (OOS) on win 2016 server as a virtual machine running HyperV on laptop windows 10. The OOS is a member of a domain, managed by a domain controller (DC) which is also itself another VM managed by the same HyperV.我的设置:我已经在 win 2016 服务器上安装并配置了 Office Online Server (OOS) 作为在笔记本电脑 windows 10 上运行 HyperV 的虚拟机。OOS 是域的成员,由域 controller (DC) 管理,该域本身也是由同一个 HyperV 管理的另一个 VM。 The OOS, DC and the Windows 10 are accessible via a HyperV internal LAN switch. OOS、DC 和 Windows 10 可通过 HyperV 内部 LAN 交换机访问。 In other words, the OOS is also accessible from the laptop.换句话说,也可以从笔记本电脑访问 OOS。 My output: I do get the discovery xml-like output, meaning that initial setup appear to be ok.我的 output:我确实得到了类似 xml 的发现 output,这意味着初始设置似乎没问题。 I followed this page for test viewing documents , particularly at step 5 of this document offers copying of test files to "%systemdrive%\Program Files\Microsoft Office Web Apps\OpenFromUrlWeb" folder on the web server (OOS) which I did.我按照此页面查看文档,特别是在本文档的第 5 步提供了将测试文件复制到我所做的 web 服务器 (OOS) 上的“%systemdrive%\Program Files\Microsoft Office Web Apps\OpenFromUrlWeb”文件夹。 However when I run "http://xxx/op/test.pptx" the said file is downloaded rather than being viewed .然而,当我运行“http://xxx/op/test.pptx”时,上述文件被下载而不是被查看 Any help would be gratefully appreciated.任何帮助将不胜感激。

However when I run "http://xxx/op/test.pptx" the said file is downloaded rather than being viewed.然而,当我运行“http://xxx/op/test.pptx”时,该文件被下载而不是被查看。

This is actually expected behavior.这实际上是预期的行为。 The IIS is not applying any processing for the *.pptx files. IIS 未对 *.pptx 文件应用任何处理。

The correct URL should look something like this:正确的 URL 应如下所示:

http://xxx/op/view.aspx?src=<encoded-URL-of-your-file>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM