MobileDocViewers(移动文档查看器)

上次修改时间: 2015年3月9日

适用范围: SharePoint Foundation 2010

为一种或多种类型的文档指定文档查看页面。

MobileDocViewers(移动文档查看器)

<MobileDocViewers>
  <MobileDocViewer>
  </ MobileDocViewer>
</MobileDocViewers >

Complex

属性和元素

以下各部分介绍了属性、子元素和父元素。

属性

子元素

元素

说明

MobileDocViewer

配置特定类型的文档的重定向。

父元素

备注

MobileDocViewers 元素保存在名为 mdocview_*.xml 的文件中,其中星号 (*) 是由有效文件名字符组成的某一字符串。我们建议使用公司名或不会与其他文档查看器提供商使用的名称重复的其他某个字符串。页面将部署到所有前端 Web 服务器上的 %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\Config。

示例

下面是此元素的使用示例。

<MobileDocViewers>
  <MobileDocViewer Name="docx" FilePath="/_layouts/mobile/mWord.aspx" FeatureId="8DFAF93D-E23C-4471-9347-07368668DDAF" QueryId="doc" AppendSourceUrl="true" >
    <BrowserCondition Id="overrideMobileDocViewerRedirection" Value="true">
      <Override FilePath="/_layouts/MobileDocHandler.ashx" AppendSourceUrl="false" />
    </BrowserCondition>
  </MobileDocViewer>
</MobileDocViewers>

请参阅

概念

开发移动文档查看器