Bug?beforprint()
look this
void __fastcall TForm1::frxReport1BeforePrint(TfrxReportComponent *Sender)
{
TfrxMemoView *memo;
AnsiString s=Sender->ClassName();
if(s == "TfrxMemoView")
{
memo = (TfrxMemoView*) Sender;
memo->Text="abc";
}
}
this can show correctly
but this
void __fastcall TForm1::frxReport1BeforePrint(TfrxReportComponent *Sender)
{
TfrxMemoView *memo;
AnsiString s=Sender->ClassName();
if(s == "TfrxMemoView")
{
memo = (TfrxMemoView*) Sender;
memo->Text=memo->Text+"abc";
}
}
this only show memo->Text not have "abc"!
why???
void __fastcall TForm1::frxReport1BeforePrint(TfrxReportComponent *Sender)
{
TfrxMemoView *memo;
AnsiString s=Sender->ClassName();
if(s == "TfrxMemoView")
{
memo = (TfrxMemoView*) Sender;
memo->Text="abc";
}
}
this can show correctly
but this
void __fastcall TForm1::frxReport1BeforePrint(TfrxReportComponent *Sender)
{
TfrxMemoView *memo;
AnsiString s=Sender->ClassName();
if(s == "TfrxMemoView")
{
memo = (TfrxMemoView*) Sender;
memo->Text=memo->Text+"abc";
}
}
this only show memo->Text not have "abc"!
why???
Comments
I user ToUnicode() to change the memo->Text, it's successï¼
but it's show the data not changed!