...
Excerpt |
---|
SoftArtisans' open source project |
What is HTMLToWord?
HTMLToWord is an Open Source Microsoft Windows .NET C# project by SoftArtisans, Inc. that allows users to insert fragments of well-formed HTML (XHTML) into a Word document as formatted text. HTMLToWord uses SoftArtisans' OfficeWriter for Word (WordWriter) WordApplication object.
...
HTMLToWord understands a subset of the tags defined in the HTML specification. See the documentation page on [on supported tags|HTML tags supported by HTMLToWord] for for a complete list of supported tags and their support level. For any HTML tag not listed in the table, or if your XHTML documents have custom tags, HTMLToWord will attempt to insert the text contents of the tag into the Word document. You can override this default behavior by setting the [AcceptUnknownTags|HTMLToWord.HTMLInsertProperties.AcceptUnknownTags] and [IncludeContentsOfUnknownTags|HTMLToWord.HTMLInsertProperties.IncludeContentsOfUnknownTags] properties found in the [HTMLInsertProperties|HTMLToWord.HTMLInsertProperties] property the AcceptUnknownTagsand IncludeContentsOfUnknownTags properties found in the HTMLInsertProperties property container and by implementing the [InsertElementDelegate|HTMLToWord.InsertElementDelegate] and [FormatElementDelegate|HTMLToWord.FormatElementDelegate] delegate InsertElementDelegate and FormatElementDelegate delegate methods.