print html logo  Home  Download

Print HTML

The printhtml.exe is a free command line tool that will send HTML content to a printer. No prompts are shown to the user. A default printer is used unless another is specified on the command line.

Download

Click here to download the program.

Installation

Installation should be quick and painless. Just unpack the files in the downloaded zip file and you are ready to run. In case you are running Windows Vista or later then you must remember to download and install the DHTML Editing Control.

Features

Command Line Usage

The program supports the following parameters:

file="file name" - File name of a file that contains HTML.

html="html content" - HTML text for the content of the printed document.

printername - Name of the printer to use. During the process this printer is set as the defalt printer. Unless the nopreserve switch is used then the original default printer is restored after the HTML is sent to the printer.

leftmargin=x.x - A decimal number defining the left margin in inches.

rightmargin=x.x - A decimal number defining the right margin in inches.

topmargin=x.x - A decimal number defining the top margin in inches.

bottommargin=x.x - A decimal number defining the bottom margin in inches.

header="header text" - A decimal number defining the left margin in inches.

nopreserve - Controls if the program will try to restore the original margins, header, and footer values for the Internet Explorer. Normally it will try to restore the original values. However, in a server scenario where multiple threads try to run the program simultainously it may cause some problems.

nogui - If this parameter is used then error messages are written in the Application event log instead of being shown in a message box.

Examples

printhtml.exe html="Hello <b>World</b>"

printhtml.exe file="doc.htm" printername="Bullzip PDF Printer"

printhtml.exe html="Wide left margin" leftmargin=2.4

printhtml.exe html="Change the header and footer" header="my own header" footer="my own footer"

License

This program is freeware. You may use it without paying for it. In case you want to distribute it with your own application then you must make on a small payment to support the developement.


Pad File