Message-ID: <2070276291.10013.1711709109450.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_10012_673743325.1711709109450" ------=_Part_10012_673743325.1711709109450 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html Inserting HTML with WordApplication

Inserting HTML with WordApplication

 

Introduction

S= oftArtisans' open source project  HTMLToWord allows users to insert well-formed HTML(XHTML)= snippets into Word documents as formatted text.
The project can be downloaded from  SourceForge.net.

What is HTMLT= oWord?

HTMLToWord is an Open Source Microsoft Windows .NET C# project by SoftAr= tisans, Inc. that allows users to insert fragments of well-formed HTML (XHT= ML) into a Word document as formatted text. HTMLToWord uses SoftArtisans' O= fficeWriter for Word (WordWriter) WordApplication object.

HTMLToWord parses XHTML fragments and inserts the contents into a Word d= ocument at the location you specify. In general, you can use HTMLToWord to = insert headings, paragraphs, lists and tables into a new or existing Word d= ocument that you open or create with the SoftArtisans WordApplication objec= t. The current version of HTMLToWord is not designed to convert entire HTML= pages to Word documents.

HTMLToWord understands a subset of the tags defined in the HTML specific= ation. See the documentation page on supported tags for a complete list = of supported tags and their support level. For any HTML tag not listed in t= he table, or if your XHTML documents have custom tags, HTMLToWord will atte= mpt to insert the text contents of the tag into the Word document. You can = override this default behavior by setting the AcceptUnknownTagsand IncludeContentsOfUnknownTags properties= found in the HTMLInsertProperties property container and by implementing = theInsertEle= mentDelegate and FormatElementDelegate delegate methods.

To get started with HTMLToWord see Using HTMLToWord.

=20
=20 Icon=20
=20

For information on inserting HTML with WordTemplate see Inserting an Embedded Document=

=20
=20
------=_Part_10012_673743325.1711709109450--