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???

Comments

  • edited 8:12PM
    Make the memo bigger, 'abc' is the second line and it may be truncated.
  • edited 8:12PM
    not this problem!
    I user ToUnicode() to change the memo->Text, it's success!
    but it's show the data not changed!

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.