trichview.com

trichview.support.thirdparty




Re: Reportbuilder TppRichView


Return to index


Author

Message

Lars Nielsen (Dontenwill GmbH)

Posted: 10/29/2004 9:20:38


Maybe this helps:


TfrmRichEmail1.txtBody.SaveRVFToStream(sWork,False);

sWork.Position := 0;

txtRichPrint.RichView.LoadRVFFromStream(sWork);


Btw: You may get a lot of problems using this component in this way with the

ReportBuilder because it has a ... well .. strange method of caching

muti-page richtext (richtext, which breaks to the next page(s)) . Especially

in the preview and on the last page if you are using the single run mode of

the ReportBuilder ...


Regards,

Lars Nielsen


"Lee.Bambury" <[email protected]> schrieb im Newsbeitrag

news:[email protected]...

> I have placed a report on my app to print the results of a users

> modification on Trichveiw, when the user prints I want to assign the

> contents of the TRichview to the one on the report I have tried using the

> following code but it does not work, just comes through blank.

>

>   sWork := TStringStream.Create('');

>

>   {*** Dave Email To Stream And Load On The Report ***}

>   TfrmRichEmail1.txtBody.SaveRVFToStream(sWork,False);

>   txtRichPrint.RichView.LoadRVFFromStream(sWork);

>   txtRichPrint.RichView.Format;

>

>   {*** Reset And Print The Report ***}

>   repEmail.Reset;

>   repEmail.Print;

>

> Kind regards

> Lee

>

>





Powered by ABC Amber Outlook Express Converter