RBuilder 9.01 and TppRichtext
I have a problem with the new Report Builder version 9.01 and the
TppRichtext-component. In my project is a stringvalue assigned to the
richtext-property like this:
Var
MyText : string;
begin
MyText := 'This is a test';
MyRichtextObject.Richtext := MyText;
end;
It runs in the earlier versions but now the text is not be printed. Is there
a new feature I don't know? What does "Mailmerge" mean?
Cheers
Ingo Ostermann
TppRichtext-component. In my project is a stringvalue assigned to the
richtext-property like this:
Var
MyText : string;
begin
MyText := 'This is a test';
MyRichtextObject.Richtext := MyText;
end;
It runs in the earlier versions but now the text is not be printed. Is there
a new feature I don't know? What does "Mailmerge" mean?
Cheers
Ingo Ostermann
This discussion has been closed.
Comments
In my testing, the code you posted below seems to work correctly. Which
event are you assigning the RichText property of the TppRichText component?
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
HeaderBandBeforePrint. There must be a difference between rb 9.01 and the
earlier versions.
Regards
Ingo Ostermann
new undo functionality:
{ here were some other changes correcting bugs in DBRichText, find topic:
IMPORTANT! Re: Opening report containing DBRichText in designer causes
Access Violation error }
Following procedure must be corrected otherwise RichText is not possible to
modify by code when Designer is active !!! (ppRichTx.pas)
//////////////////////////////////////////////////////////////////////////////////
procedure TppCustomRichText.LoadFromRTFStream(aStream: TStream);
var
tempStream: TMemoryStream;
begin
tempStream := TMemoryStream.Create;
try
tempStream.CopyFrom(aStream, 0);
aStream.Position := 0;
tempStream.Position := 0;
BeforePropertyChange('RichText');
if (MaxLength > 0) and (MaxLength < tempStream.Size) then
SetMaxLength(tempStream.Size);
FRichTextStrings.LoadFromStream(tempStream);
finally
tempStream.Free;
end;
InvalidateDesignControl;
PropertyChange; {ok to call this here}
Reset; {notify report engine}
end; {procedure, LoadFromStream}
//////////////////////////////////////////////////////////////////////////////////
Than recompile your packages or add RB source path to your project's search
list
Regards, Igor Gottwald
PS: There is also a serious bug in RB 9.01 when using DBRichText. I have
published solution for that bug too, but I get no response from Digital
Metaphors....
"Ingo Ostermann" p??e v diskusn?m p??sp?vku
Thank you for the feedback and the information on some of our RichText
issues. All of your observations have been taken into account and all the
bugs you have discovered will be fixed for the next release of
ReportBuilder.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com