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];
}
}
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
MY CODE HAVE THIS Q