共用方式為


HtmlTrInfo Element

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Used in HtmlTransInfo.xml file (\Program Files\Common Files\Microsoft Shared\web server extensions\12TEMPLATE\XML) to contain mapping instructions for directing a request to the URL for handling a request when the client computer does not have the 2007 Microsoft Office system installed.

<HtmlTrInfo>
  <Mapping
    AcceptHeader = "Text"
    Extension = "Text"
    HandlerUrl = "Text"
    ProgId = "Text" />
  ...
</HtmlTrInfo>

Attributes

Attribute

Description

None

N/A

Child Elements

Mapping

Parent Elements

None

Remarks

When the client computer does not have the Office application installed, Windows SharePoint Services creates an HTML rendition of the page by using a converter program on the server.

Example

The following example shows the instructions used in the HtmlTransInfo.xml file.

<HtmlTrInfo>
   <Mapping Extension="xls" AcceptHeader="application/vnd.ms-excel" 
      HandlerUrl="HtmlTranslate.aspx" />
   <Mapping Extension="doc" AcceptHeader="application/msword" 
      HandlerUrl="HtmlTranslate.aspx" />
   <Mapping Extension="ppt" AcceptHeader="application/
      vnd.ms-powerpoint" HandlerUrl="HtmlTranslate.aspx" />
   <Mapping Extension="pps" AcceptHeader="application/
      vnd.ms-powerpoint" HandlerUrl="HtmlTranslate.aspx" />
</HtmlTrInfo>