Help - Search - Members - Calendar
Full Version: code on frxReport1GetValue gets never executed
Fast Reports forum > Fast Reports Products > FastReport 3.0
Marcus
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];


}
}







-=Den=-
In memo "[test]" not "test".
Marcus
Thanks a lot Den! It started to work!


biggrin.gif
xiaomaoxia
unsure.gif i have the same problem, but never work in getvalue
xiaomaoxia
work now!
mentoro
QUOTE(xiaomaoxia @ Mar 17 2006, 09:09 AM) *
unsure.gif i have the same problem, but never work in getvalue




MY CODE HAVE THIS Q
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.