共用方式為


Mapping 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 an HtmlTransInfo.xml file (\Program Files\Common Files\Microsoft Shared\web server extensions\12TEMPLATE\XML) to direct requests to the URL for handling the requests when the client computer does not have the 2007 Microsoft Office system installed.

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

Attributes

Attribute

Description

AcceptHeader

Optional Text. Specifies the application to use to open a file in a document library. If HTML viewing is enabled, Windows SharePoint Services compares the value of this attribute with the Accept-Header HTTP header of the request, and either opens the document in its native format through the specified application, or offers to convert the document to HTML. For more information, see Programming with the Microsoft.HtmlTrans Namespace.

Extension

Optional Text. Specifies the file name extension for the document type.

HandlerUrl

Optional Text. Specifies the URL of a converter program used by the server to handle a request when the client computer does not have Microsoft Office system installed.

ProgId

Optional Text. Specifies the name of the ActiveX control used to open the type of document.

Child Elements

None

Parent Elements

HtmlTrInfo

Occurrences

Minimum: 0

Maximum: Unbounded