Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with OnNeedData Event

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,
I am building a report using QuickReports2/Delphi3. I read labels from a textfile that has this format:
10;1
label1
label2
label3
label4
label5
label6
....

My report should place 5 labels in each line. The first line represents the line and column where I should start to place the labels. I am using a DetailBand and the OnNeedDataEvent to print these labels, and I am using also an array[1..5] of TQRLabels. What I do is loop while I have not reached 6 labels in a row then I set moredata to true if I haven´t reached end of file. What happens is that the report places the first row, but the next one simply doesn´t appear. I´ve also verified that after the printing the first row execution goes into the OnNeedData again, but the next row just doesn´t appear.
Thank you,
Adriano
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top