Tutorials > VSPrinter Examples |
The following sections show examples that illustrate common techniques you can use when programming the VSPrinter control. You can study the source code on the printed manual, or work on-line, copying the code from the help file into VB.
Here is a list of the examples available:
Page n of m |
Shows two ways to generate document footers that contain the current page number and the page count (with and without overlays). |
Shaded Table |
Shows simple table formatting using the AddTable method. |
Table Formatting |
Shows simple table formatting using the TableCell property. |
Data-based Tables |
Shows how you can use the AddTableArray method to render data from databases. |
Custom NavBar Button |
Shows how you can add custom buttons to the VSPrinter's built-in document navigation bar. |
Build an Index |
Shows how you can build an index for an existing document based on a word list stored in a file. Uses the FindText property. |
Build a Table of Contents |
Shows how you can build a live table of contents. Uses document tags (FindTag, RetrieveTag) to implement hyperlinks. |
Find Text |
Shows how you can search for string (find first/next) in a VSPrinter document. Uses the FindText property. |
Note: We provide many sample projects on the distribution CD, and more as posted on our Web site as they become available. If you have an interesting sample you would like to share with others or a suggestion for one, please let us know. |