What is new in the v6?

  • Do not print parameter (/CP) to count the pages instead printing them.
  • Multiple headers and footers support.
    Up to three different headers and/or footers can be used for different parts of the same document.
  • After it is installed, HTMLPrint will be added to Windows Explorer context menu, in order to provide an easy way to print files.
  • Printing Lists:
    • Drag and Drop support of files, folders and text lists of files.
    • Save, Load & Append Lists
    • Supports multiple file formats, e.g. HTM, HTML, BMP, JPG, GIF, PNG, WMF, EMF).
    • List order organizing options
    • Print Scheduler, for automating reports to print at a specified time

Some keynames in the .ini file changed, you may need to adjust header/footer keynames and the keyname used  to set the printer name, in  configuration  files from versions previous to 5.1.

See also:

Overview

HTMLPrint is a utility program for printing HTML and image files from other applications or to print automatically incoming files in a specific directory.

HTMLPrint opens and prints HTML files located on the local hard disk or network but it cannot download them from the Internet.
It can download online images but only static ones; dynamically generated images are not supported.

HTMLPrint runs as a visible application only when it is started without passing any argument in the command-line.

Command-line parameter were widely used in the DOS days, when programs were called by typing their file name, which may be followed by additional parameters. In the present time parameters are commonly used in .bat files and by computer programmers, but many Window users also use them.

HTMLPrint does not require having installed any Internet Browser, because it uses its own stand-alone HTML engine (although it requires IE 4 or newer to display its help file, following Windows standards)  that is fast and requires only an small amount of computer resources to run effectively.

HTMLPrint supports most of the HTML 3.2 specifications with many additional popular HTML 4 enhancement (see here the list of supported tags), but not scripting, Java or ActiveX Controls. It also supports StyleSheets (see the specifications here). HTMLPrint doesn't print framesets, only single HTML pages. HTMLPrint cannot print the page background image or color. UTF-16 encoding is not supported.

Bersoft HTML Print is designed to work with and be called by other software or at least, by a batch file, passing the filename (HTML page, GIF, JPEG, BMP, PNG, WMF or EMF image) to be printed as a parameter in the command line.

Examples:

htmlprint.exe myfile.html

htmlprint.exe myimage.pgn  

htmlprint.exe mygraph.emf

Also is possible to print all the HTML files or images situated into a directory  (see Settings: Directory Tab)

When HTMLPrint is installed, a default configuration file, named HTMLPRINT.INI is created in HTMLPrint directory.
That file is used to configure printing options. It can be edited using HTMLPrint (menu File/Edit) or any text editor like Notepad and it should be saved as an only text (ASCII) file.

See also: HTMLPrint configuration file

Although HTMLPrint looks for a configuration file named HTMLPRINT.INI, situated in its same directory, it is possible to use other configuration file, passing the filename as the second command-line argument.

Example:

htmlprint.exe myfile.html conf1.ini

Passing alternative configuration files in the command line is useful to configure HTMLPrint in different ways.

If any filename passed in the command line have spaces, it always should be enclosed in double quotes. Example:

htmlprint.exe "images of the beach.html" "c:\Program files\conf\configuration.ini"

If relative paths are used, they should be relative to the location of HTMLPrint.

Specifying the page range to be printed

By adding a third parameter to the command line it is possible to specify the range of pages to be printed. Notice that the following example separates the starting and ending page with a hyphen, also, since the second parameter (the .ini filename) is not used, it is replaced by a hyphen. If the second parameter is not used, always replace it by a hyphen.

htmlprint.exe myfile.html - 5-9

Additional Command Line Switches

The following switches always should be added at the end of the command line.

/P

Set the printer to be used.

/H

Set the footer.

/F

Set the header.

/CP

HTMLPrint will count and return the number of pages in the HTML document, instead printing it.

 Example:

htmlprint.exe doc1.htm  /P="HP LaserJet 4000" /H="<!--C#-->"  /F="<!--D#-->"

If any of these three Command Line Switches is specified, they will take precedence over the configuration file settings.

Using HTML files as headers/footers:

By including some special tags in the HTML file, HTML files may be printed as headers or footers.

See Settings: Footer/Header Tab to learn more about printing headers and footers.

Error log

If there are any errors while printing files, the error messages will be logged to the error_log.txt file. Learn more.