See the result for
See the code to generate this sample
Line 1 When the DLL is entered initially, a dcoument
is created which sets the inside frame to be the whole page. AddFirstPage
over-rides these defaults so long as nothing has already been
added to the document. In this example both a header and a footer
are created. An artificially wide right margin is specifed in
order to demonstrate how the report is pslit across more than
Line 2 An ADO data source is accessed
Line 3 And a connection established
Line 4 A particular table is selected from the database
Line 5 The successive rows from the recordset are accessed.
Lines 6 - 8 Data from the record are accessed and printed using
AddTextAt. If more data is to be shown than will fit on a single
page, an appropriate autostep option should be specified.
Lines 9 - 10 The next row in the table is selcted
Line 11 Finally, the document is complete and, by default, EndDocument
displays the result in the preview window, allowing the user to
review it or print it as desired.