code on frxReport1GetValue gets never executed

Hello All,

I'm having weird problem with FastReport 3.19 with bcb 6:


I have one frxReport and one frxUserDataSet dropped on form
on frxReport i have report title, masterdata, and pagefooter bands
on masterdata band i have dropped one memo field having text "test" on it.
mastedata band is connected with frxUserDataSet.

Problem is, that evenhandler: frxReportGetValue never gets executed, i tested by putting debug breakpoint to the function and saw that code there is not executed, this leads to situation that i'm not able to get any data on my report.

Could someone please halp me and tell what i'm doing wrong here?


Thanks



Here is the code sample:


TempList->Add("1");
TempList->Add("2");
TempList->Add("3");
TempList->Add("4");
TempList->Add("5");

frxUserDataSet1->RangeEnd=reCount;
frxUserDataSet1->RangeEndCount=TempList->Count;
frxReport1->ShowReport();



void __fastcall TForm1::frxReport1GetValue(const AnsiString VarName,
Variant &Value)
{
if (strcmp(VarName.c_str(), "test")==0)
{Value=TempList->Strings[frxUserDataSet1->RecNo];


}
}







Comments

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.