CHT (Clarion Handy Tools)
Templates, Classes, Utilities, Apps, Projects

OCTOBER 26, 2021

Next CHT Release 25D.02.00
November 5, 2021

Our next CHT interim build will be 25D.02.00 to be released on Friday November 5, 2021 unless otherwise notified here.

Build Highlights

• Revision of CHTSNAPEDIT.EXE, including:
  - new HTML preview features and editor shortcuts.
  - conversions for UTF8 Latin characters 128-591 for HTML
  - conversions for UTF8 Coptic characters 880-1023 for HTML
  - direct preview as PDF

• Revision of translation file configuration for Query and Locator templates.

• Full CHT Query Language translations, including:

OCTOBER 1, 2021

Build 25D.01.00
Now Available

One of the most important changes we're making for Build 25D.01.00 is a re-build of our HTML to PDF translation tool, CHTSNAP2PDF.EXE. This tool has been with us for approximately 6 years. It has enabled us to publish all of our HTML website pages and HTML documentation also as user-interactive PDF documents.

Examples of HTML to PDF translations abound on our website. Here are just two of them:

CHT Home Page as HTML

CHT Home Page as PDF

CHT Templates Doc as HTML

CHT Templates Doc as PDF

While you're checking out the above links, please notice the follwing things:

• The PDF documents look exactly like the HTML documents, (as expected).

• The PDF documents work exactly like the HTML documents, (better than print to pdf).

We say "work exactly like" the HTML documents because all internal links work as they do in HTML. You can jump to subsections of the same document just as you are able to do with HTML. All viable, original HTML internal links are honored.

We say "work exactly like" the HTML documents because all extermal links work as they do in HTML. You can jump to external document URLs (if reachable) just as you are able to do with HTML. All viable, original HTML external links are honored too.

Try making this work with any of the Print-to-PDF printer driver conversions many of you have used up to now. They may look the same, but they won't work the same.


Previously CHTSNAP2PDF.EXE was a one-piece application. It has been rebuilt as a two-piece application consisting of an executable, CHTSNAP2PDF.EXE and a DLL, PDFLIB.DLL.

Clarion applications can now execute CHTSNAP2PDF.EXE using Clarion's "RUN" functionality or CHT's capture console (HNDCAPCON.INC/.CLW) "RUN" function.

CHTSNAP2PDF.EXE as discussed here is a command-line application which we (or you) can call from your Clarion application, or from a batch script, to provide a translation of any HTML document into a well-formed, interactive, PDF. We've simplified the command-line interface as follows:

These DOS command-line inputs are required:
Source and target filenames must include a full path.

New Application: HNDHTML2PDF.APP

This "CHT Utility Application" HNDHTML2PDF.EXE may be used to convert well-formed HTML into user-interactive PDF documents. This application provides a more user-friendly interface to CHTSNAP2PDF.EXE.

Four versions of the HNDHTML2PDF.EXE executable are provided, one each with C9.1, C10, C11 and C11.1, located in the \accessory\bin\ directory. The source application is also provided in CHT's \hndapps\ directory.


Configure an "HTML Source Directory" and a "PDF Target Directory". The HTML file pickup location is determined by the "Source" value and the PDF creation location is determined by the "Target" value.

Next, select the .HTM or .HTML file names that you want to convert to PDF documents. These file names are then stored in the HNDHTML2PDF.TPS file along with a complete path, and a TIME, DATE and SIZE stamp. Since the file names and dates are stored, the date-time-size information on these files remains static. However, a double click on any file name forces a refresh of the DATE, TIME, SIZE information provided for the file.

Using the multi-select feature of the CHT LBX browse on the conversion dialog window, highlight the file or files that should be processed into .PDF's.

Click the PDF button on the window toolbar to begin PDF creation. Files with the same names but a .PDF extension are created in the "PDF Target Directory".


This "CHT Utility Application" HNDTPLREGISTRY.EXE, is used to register a set of user-selected templates to the Clarion IDE.

Four versions of the executable are provided, one each with C9.1, C10, C11 and C11.1, located in the \accessory\bin\ directory. The source application is also provided in the \hndapps\ directory. Each HNDTPLREGISTRY.EXE version addresses directly, and only, the Clarion template registry of the Clarion version with which it was compiled.


First, select all the .TPL file names that you want to register from \templates\win\ and from \accessory\template\win\ into the application browse. These file names are stored in the HNDTPLREGISTRY.TPS file under the application directory. You only need to do this first step once, unless extra templates not already selected and stored are required.

Next, close the Clarion IDE version being addressed if it is running, as the application will refuse to register templates if it detects that Clarion version is still running.

Next, select the templates you wish registered using the CHT LBX browse record selection method. Browse record selection works as in any CHT HandyMarkerBrowse or CHT ListBoxBrowseExtender browse.

Finally, click the "Register" button on the toolbar. The application confirms with you, that the Clarion IDE being targeted is NOT running. Once confirmed, it renames the current \template\win\clarionregistryXX.trf and registers the templates selected in the application browse.

Contact Us

Click the link below to contact us by email.
It will start your email client with our email address inserted:

Click To Contact Us