HTMLWriter for Windows Publisher's description
from Rudolf Henning
This little utility library was created to generate raw html fragments
This little utility library was created to generate raw html fragments or documents that could be used inside other applications for displaying things like reports or provide a means to have printing functionality etc.
It is a very lightweight library and based on the .Net StringBuilder class - thus very fast and optimized for creating large html fragments if needed.
The HTMLWriter class allows you to build up the html fragment tag (html tag) by tag and optionally to specify html attributes.
Some tags have predefined attributes that almost always has to be specified - like <a> has the url attribute, so the methods to add the anchor tag all the url as a parameter. Another common attribute on most tags is the class name (CSS class name). Most methods have multiple overloads to make it easier to use.
There are also a couple of helper classes - one to help with custom html attributes and another to help with DataTable formatting.
There is a set of extension methods to facilitate passing a whole DataTable (like in DataSets) in and have a whole html table generated based on the content - complete with alternating rows and even an 'editing page link' if needed.
It supports some limited html formatting functionality. Some tags can automatically be placed on a new line and the indentation level changed - like 'blockquote' or 'tr'.
Stylesheet definitions (all the stuff between <style> and </style>) are handled separately and only get merged when the final fragment/document is generated. Both internal and external stylesheets are supported.
It has a built-in method for saving the generated html to a file - making it easier to use inside a WebBrowser control. It does not force you what directory to use - although it is recommended to use a user/data directory e.g. System.Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
System Requirements:No special requirements.
Program Release Status: Major Update
Program Install Support: Install and Uninstall