<< Click to Display Table of Contents >> The Demo VPEDEMO.EXE |
Welcome
An introduction.
Capabilities + Precision
This demo shows text formatting features, drawing features, bitmap handling, form filling and of course printing. Important: the VPE-DLL "docks” its view inside of the window owned by vpedemo.exe! This is very easily done by a few lines of C code!
The menu entry "Background” shows how to print without showing a preview and no setup-dialog (default printer is used). The Preview sends the VPE_HELP message to the calling application instead of showing the standard help dialog, so you see the message box "User requested help" on the screen.
Speed + Tables
Here you can see how fast VPE builds a report with a size of about 110 - 130 pages:
A text file with random data is generated (journal.rpt). vpedemo.exe reads the text file line by line, interpreting it and instructing VPE how to build the report.
Since it is random data, the number of pages differs from 110 - 130 pages. Note, this demo prints the number of generated pages finally on the FIRST page of the report in the upper left corner. This is done by the virtual processing of the document, where you can move to any page at any time to draw on it. In this case the demo generates all pages and then jumps to the first page to draw the message.
Colors
There you can see a fixed scaled window. Also, the toolbar has only the print and the e-mail button, and the status bar is hidden. The user cannot close the document; it can only be closed through vpedemo.exe by selecting the "Close Preview” menu entry. If you print the page to a color printer, you will get a true-color result.
Report
This is another report, showing various colors and a pie chart on the second page. The source code shows very fine, how easy creating reports is by encapsulating the different parts of the report into functions.