Home > Execu/Suite Hotel PMS > Setup Execu/Suite Hotel PMS > Other Settings > ETHTMLPrint (Print Folios, Reg Card, Cancellation, etc.)
ETHTMLPrint.exe is an HTML print engine that we've written to replace 3rd party HTML print engines.
This is used to print Guest Folios, Registration Forms (Reg Card), Cancellation Letters and more.
This is our preferred method of printing reports based on HTML templates.
To use this method of printing:
$ETHTML
<!DOCTYPE html>
<!-- saved from url=(0026)https://www.execu-tech.com -->
<
html
>
head
title
>GUEST-FOLIO</
</
You can specify Margin, ShrinkToFit and Orientation in the HTML document. This can be helpful if one of your HTML forms needs to print with unique settings.
Place these settings at the top of the HTML document, before the tag. One setting per line. If you use the $MARGINS setting all options must be given.
For example, to set margins to .5 inch all around and not to shrink to fit, orientation to portrait, and display before printing, add these lines below $TOTEM
$MARGINS=.5,.5,.5,.5,True
$ORIENTATION=0
$VISIBLE
Default Page Setup (Margins, etc.)
If you edit these settings be aware that they only apply to the currently logged in Windows user and that they will affect all documents unless the document has these settings embedded.
Developer Information
If you're not a developer wanting to implement this into your application, ignore this section.
Usage: ETHTMLPrint.exe /f FileName /p PrinterName /o Orientation /c Copies /m Margins /v ViewMode FileName (Required): Full path to the HTML file. PrinterName (Optional): Full text name of the printer. Orientation (Optional): 0 = Portrait (this is the default), 1 = Landscape. Copies (Optional): The number of copies to print. If not specified 1 copy will print. Margins (Optional): Top,Right,Bottom,Left,ShrinkToFit (Example (Margins are in inches) = .5,.5,.5,.5,True) ViewMode (Optional): 0 = Print only don't view, 1 = View only don't print, 2 = View and print.
You can create a separate HTML file for each page and run this once per page. You can also include all pages in a single file using the following code to insert a page break between the pages.
br
style
=
"page-break-after: always"