zoukankan      html  css  js  c++  java
  • 解决sharepoint 2010浏览器在线浏览Word出错

     

     

     

         安装部署完office web apps 后,在sharepoint 2010浏览器中浏览Word提示:“由于出现意外错误,Word Web App 无法打开此 文档 进行查看。 要查看此 文档,请在 Microsoft Word 中打开它。”

    系统环境: win2008r2 + sql2008R2 + sharepoint 2010 + office web apps

      安装部署完office web apps 后,在sharepoint 2010浏览器中浏览Word提示:“由于出现意外错误,Word Web App 无法打开此 文档 进行查看。 要查看此 文档,请在 Microsoft Word 中打开它。”,如图:

    sharepoint 2010浏览器在线浏览Word出错提示:“由于出现意外错误,Word Web App 无法打开此 文档 进行查看。 要查看此 文档,请在 Microsoft Word 中打开它。”

          只有当sharepoint 2010安装在域控制器上才会出在线查看word文件出错.

      第一步:需要从开始菜单进入 SharePoint 2010 Management Shell 在命令窗口执行如下命令:

      $e = Get-SPServiceApplication | where {$_.TypeName.Equals("Word Viewing Service 应用程序")}

      $e.WordServerIsSandboxed = $false

      $e.WordServerIsSandboxed

      $p = Get-SPServiceApplication | where {$_.TypeName.Equals("PowerPoint Service Application")}

      $p.EnableSandboxedViewing = $false

      $p.EnableSandboxedEditing = $false

      $p.EnableSandboxedViewing

      $p.EnableSandboxedEditing

      #(Please use the below script for PowerPointServiceApplication – You need to enter "Y" for the answer of each cmd)

      Get-SPPowerPointServiceApplication | Set-SPPowerPointServiceApplication EnableSandboxedViewing $false

      Get-SPPowerPointServiceApplication | Set-SPPowerPointServiceApplication -EnableSandboxedEditing $false

      或者新建一个记事本文件,将以上内容拷贝,保存后更改文件后缀为 .ps1 例如 temp.ps1

      然后从开始菜单进入 SharePoint 2010 Management Shell 在命令窗口输入 e:\temp.ps1

      第二步:用记事本打开 c:\windows\system32\inetsrv\config\applicationHost.config 文件

      在</dynamicTypes>的前面加入<add mimeType="application/zip" enabled="false" />,保存。

      注意事项:

      1. 在管理中心网站上的“应用程序管理”部分,单击“管理服务应用程序”右侧可以看到类型名

      例如英文版的类型名是 "Word Viewing Service Application" 中文版是

      "Word Viewing Service 应用程序" 请对照修改命令。

      2.如果要使系统支持powerpoint 对于所有提问请回答 Y 是

      3.以前上传的word文件需要重新上传,才能使用

      4.office web apps 不支持 excel97-2003 格式文件在线浏览编辑

  • 相关阅读:
    MFC tab页面中获到其它页面的数据
    sqlite数据库中"Select * From XXX能查到数据,但是Select DISTINCT group From xxx Order By group却查不出来
    关闭程序出现崩溃(exe 已触发了一个断点及未加载ucrtbased.pdb)
    springboot 通用Mapper使用
    springBoot 发布war包
    springCloud Zuul网关
    springboot hystrix turbine 聚合监控
    springBoot Feign Hystrix Dashboard
    springBoot Ribbon Hystrix Dashboard
    springBoot Feign Hystrix
  • 原文地址:https://www.cnblogs.com/sunjunlin/p/2302112.html
Copyright © 2011-2022 走看看