VCL 5 Question - PrintArray and PrintStringList Examples

TMSTMS
edited 6:07AM in FastReport VCL 5
I am trying to build my own applications similar to the PrintArray and PrintStringList examples which come with VCL5 (data created dynamically instead of via a database table).

1) I drop a frxREPORT and a frxUserDataSet on my form
2) I add some fields to frxUserDataSet
3) I open frxReport in the editor, add a MasterData Band, add the frxUserDataSet as the band's DataSet, and add a few fields to the band from frxUserDataSet

I encounter two problems

1. The frxReport1GetValue handler never fires, so I can't assign anything to the "Value" variant as is done in the PrintArray and PrintStringList examples

2. The frxUserDataSet1GetValue handler fires, but no matter what I return as "Value", the fields in the MasterDataBand remain blank. My report is just a bunch of blank lines.

What must I do to get the frxReport1GetValue handler to fire?

Why does assigning a value to "var Value: Variant" in the frxUserDataSet1GetValue handler have no effect?

Thanks for any suggestions.

Comments

  • edited 6:07AM
    Make sure you properly configured TfrxUserDataSet.
    I.e. assing RangeEnd mode and records count (if you are using reCount mode).

    If you dataset has no records , the result will be an empty report.

Leave a Comment