trichview.com

trichview.support.thirdparty




Re: TppRichView, trvHTMLImporter and Report Builder


Return to index


Author

Message

Steve Beebe

Posted: 02/17/2004 22:26:34


Here's what I have:


in the OnPrint event


var


  lppDBRV: TppDBRichView;



  lpl: TppDataPipeline;





  lfld: TField;


begin




  if Sender is TppDBRichView then


  begin


    lppdbRV := TppDBRichView(Sender);


    lpl := lppdbRV.DataPipeline;


    lfld := TppDBPipeline(lpl).DataSource.DataSet.FieldByName(lppdbRV.DataField);




    RvHtmlImporter1.RichView := lppdbRV.RichView;


    RvHtmlImporter1.LoadHtml(lfld.AsString+'testing');


    lppdbRV.RichView.Format;


  end;

end;


The problem, is the result appears to be over-written by the population of

the TppDBRichView from the field.  The above approach works fine with a DBRichView

component, navigating a dataset and using


  RvHtmlImporter1.RichView := BRichView1;

  RvHtmlImporter1.LoadHtml(ADODataSet1.FieldByName('Description').AsString);


  DBRichView1.Format;


in the AfterScroll event of the dataset.  Any ideas on how to make this work

using the TppDBRichView?


steve


"Steve Beebe" <steve@xapware.com> wrote:

>

>I am storing HTML information in a blob field.  I need to render this correctly

>on a Report Builder Report.  Can this be done with the TRichview components?

>

>I assume I would need to do something like:

>

>rvHTMLImporter.LoadHTML(BlobField.AsString);

>

>But I'm not sure how to get that information in to the TppRichview component.

>

>Any ideas?

>

>Thank you.





Powered by ABC Amber Outlook Express Converter