![]() |
|
#1
|
|||
|
|||
|
I have TQuery and TDBGrid on a form. The grid show the different results of SQL which are created dinamically (the String property of Query is empty).
TQuickRep is on different form. When I press the button on first form, the second, with TQuickRep became visible. There are 4 QRDBText components (because the result in DBGrid on first form have 4 coloumns) on Detail band with AutoStretch & AutoSize property set to true. The DataSet of QuickRep1 is properly configured. There are in OnActivate event of the form with report: QRDBText1.DataField:=Form1.DBGrid1.Fields[0].AsString; QRDBText2.DataField:=Form1.DBGrid1.Fields[1].AsString; QRDBText3.DataField:=Form1.DBGrid1.Fields[2].AsString; QRDBText4.DataField:=Form1.DBGrid1.Fields[3].AsString; But I can see only the first row from DBGrid1. How to show the others? |
|
#2
|
|||
|
|||
|
though in your question you said that the dataset property of the quickreport is configured but i bet that you have not because that is the only case when despite the datasource holding multiple records the quickreport displays a single record based on the controls dataset property and doesnot run it in loop from first record to last
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|