次の方法で共有


Formats Supported for altChunk

The altChunk importing functionality of Word supports the following formats for the imported content:

This blog is inactive.
New blog: EricWhite.com/blog

Blog TOC

AlternativeFormatImportPartType enum

Content Type

Html

text/html

Mht

message/rfc822

OfficeWordMacroEnabled

application/vnd.ms-word.document.macroEnabled.main+xml

OfficeWordMacroEnabledTemplate

application/vnd.ms-word.template.macroEnabledTemplate.main+xml

OfficeWordTemplate

application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml

Rtf

application/rtf

TextPlain

text/plain

WordprocessingML

application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml

XHtml

application/xhtml+xml

Xml *

application/xml

 

* This content type imports Office 2003 Word XML format (schemas) and the Office 2007 flat OPC format.

For a basic example that shows how to use altChunk, see How to use altChunk for Document Assembly.

Another approach for assembling a document is to use DocumentBuilder. See Comparison of altChunk to the DocumentBuilder Class for more info.

You can construct and insert rich content that contains images. For more info, see Inserting Content that Contains Images using altChunk.