Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 01-08-2001, 02:36 AM
traca traca is offline
Junior Member
 
Join Date: Jan 2001
Posts: 28
Default QReport & TQuery question (D5)

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?
Reply With Quote
  #2  
Old 01-09-2001, 03:12 AM
digitiger digitiger is offline
Senior Member
 
Join Date: Jan 2001
Posts: 716
Default RE: QReport & TQuery question (D5)

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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 10:07 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.