Mega Code Archive

 
Categories / Delphi / ADO Database
 

Switching between different data sources

Question: In QuickReport 1 all components was connected to a DataSource, now they are connected to a DataSet. The other solution made it much easier to switch between different tables. Why did this change? How do I use it? Answer: This change was done to improve speed, code size and to make QuickReport more stable. To switch between different tables and queries it's easiest to use the TQRExpr component to display field data. TQRExpr will pick up the field from any dataset connected to the report, regardless of its name. Then simply change the QuickRep.DataSet property.