Stonefield Query includes an extensive HTML Help (CHM) file that describes all the dialogs and provides tutorials and a "how to" section. However, it's likely you'll need to customize this help file, especially if you change the Application Name or other configuration settings. Fortunately, the Configuration Utility can do much of the work for you.

Creating a Help Project

Before you can create a customized help project for your Stonefield Query project, you need to do a little preparation. In the Stonefield Query Report Designer, create at least one report of each type—quick report, cross-tab report, label report, and chart—in the Favorites folder. These reports are used to create screen shots of the report wizards so the topics in the help file display appropriate sample reports for your application. Next, fill in the Support Contact Information configuration setting if it isn't already.

To create a customized help project, choose Create Help Files from the File menu or the shortcut menu or click the Create Help Files button in the toolbar. This creates a subdirectory of the current Stonefield Query project directory called HTMLHelp and places the help project files into this subdirectory. The project files are customized according to the current configuration settings. For example, all references to "Stonefield Query" are changed to the value you specify for the Application Name configuration setting.

Note that if the Support Contact Information configuration setting isn't filled in, the Technical Support help topic won't be complete, so you are prompted whether you want to continue. If you choose No, that setting is automatically selected so you can fill it in and try again.

After generating the help files, the Configuration Utility then generates screen shots of most Stonefield Query dialogs. Before doing so, it asks whether you want a "camera" sound played as it does so. Choosing Yes makes it obvious what is happening but also slows down the process. After you choose either Yes or No, the Configuration Utility launches Stonefield Query and tells it to print the various screen shots. You can stop the screen shot process by pressing Esc if necessary.

In order to generate screen shots of report wizards that are specific for your application, you must create at least one report of each type (quick, cross-tab, label, and chart) in the Favorites folder. None of these reports should have any ask-at-runtime conditions. If a specific report type cannot be found or it has an ask-at-runtime condition, a warning message is displayed and the screen shot set won't be complete.

Two types of help projects are created. The first is a Microsoft HTML Help Workshop project. HTML Help Workshop comes with many Microsoft development environments, but you can also download it from Microsoft's Web site (http://msdn.microsoft.com; search for "html and help" and choose the download link from the results). The main file for this project type is SFQuery.HHP.

The other type of project is a West Wind HTML Help Builder project. HTML Help Builder, from West Wind Technologies (http://www.west-wind.com) is a great, inexpensive utility for creating HTML Help files. It was used to create the help files for both Stonefield Query and the Configuration Utility. The main file for this project type is SFQuery.HBP.

Customizing a Help Project

Although the Create Help Files function does much of the customization work for you, you may have to customize additional things in the generated help project. Here are the most common topics to customize (topics referred to in the instructions below with "Stonefield Query" in the topic name will actually appear as whatever you changed the Application Name property to in your help file):

How you customize the help project depends on which type of help project you want to work with. The easiest one is a West Wind HTML Help Builder project. Open SFQuery.HBP, select the appropriate topic from the TreeView in the left pane, and edit the text as necessary in the edit region in the right pane.

If you want to edit the HTML Help Workshop project, open SFQuery.HHP, choose the Contents page, and double-click the appropriate topic in the list. The text for the topic is displayed with HTML tags, so editing it is much more cumbersome than using West Wind HTML Help Builder. You can use a different HTML editor if you wish, but note that the names of the HTML files are system-generated names like _0QX0T1ZEU.htm. To find the file to edit for a topic you want to change, select the topic in the Contents page of the HTML Help Workshop, click the Edit Selection button in the toolbar, and note the name of the file shown in the General page of the dialog that appears.

Building the Help File

Building the help file is simple. In HTML Help Workshop, click the Compile HTML File button in the toolbar. In West Wind HTML Help Builder, click the Build Help button in the toolbar. In either case, follow the prompts in the dialogs that appear. After the SFQuery.CHM file has been created, move it to the Stonefield Query project directory.


Stonefield Query generates the project files for your custom help file in a particular directory. If you move the files to a different directory and you want to use HTML Help Workshop to generate the CHM file, you must edit the #INCLUDE statement in the [MAP] section of the SFQuery.HHP file to specify the correct path for the SFQuery_Help.H file.


Placing the help source files in a very deeply nested directory structure may cause the help file to compile incorrectly. If this happens, try using a different, less deep directory structure.