Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt

SoftArtisans' 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 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.