I don't get the Qreport OnNeedData...
Posted on 2000-02-19
Hi, I have a TStringList which I want to print in a report. One subdetailline per String in the List.
So, I figured I have to use the OnNeedData event of the subdetail to print each rule.
No I have the following code:
procedure TLCRepForm.HygOpdtNeedData(Sender: TObject;
var MoreData: Boolean);
if HygList.Count > ListCount then
HygOp.Caption := GebouwList.Strings[ListCount];
MoreData := GebouwList.Count > ListCount ;
where the HygOp is a label on my subdetailrecord. I have the dataset of the subdetail empty..
I can't figure out what I'm doing wrong.. It just print nothing...