Preview / print data in tadotable with TDBTablePrinter control
Chapter 1 All necessary steps
first step:
Place TDBTablePrinter Tadotable Trvsystem Tbutton on the form
Step 2:
Set the data connection properties for the Tadotable control, set the Active property to true. Note that adotable's Field's DisplayWidTh property does not affect each column of the report.
third step:
Set DBTablePrinter-> DataSet to adotable1. Then double-click on the TDBTablePrinter control, set ReportHeader and BodyHeader to Active. Click Add ... button to add a field in the colume page
the fourth step:
Click DBTABLE1BODYHEADER in ObjectTreeView, set OutputType to OtHeadings
the fifth step:
Add code in the Button1 on the onclick event :: rvsystem1-> execute ();
Add code to RVSystem1 onPrint events ::
DBTablePrinter1-> EXECUTE ((TBASEREPORT *) Sender);
Chapter II Format Adjustment
I don't know why the picture is always not displayed, please
http://www.zahuifan.y365.com/software/rave1.zip
Download all documents