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 A new report is commenced. At this stage it contains no
Lines 6 - 8 The overall report parameters are changed as required.
At this point the report still has no columns nor any content.
Line 9 The report is produced from the recordset. Since the second
parameter is set to True, the field definitions in the recordset
are used to set up the columns and their headers.
Line 10 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.