how to display basic HTML tags
I am printing out memo fields in a report that have simple HTML tags embedded in the text.
Only and are used.
Any recommendations on how to get RB to display these properly?
I am thinking of displaying the fields as DBRichText fields in the report
and then putting code in the onprint event to replace the HTML code with the appropriate
RTF formatting code.
Is there a simpler way? Any demos available that allow display of HTML tags?
I've taken a look at the dm0029.pas report which shows how to manipulate richtext fields in a report.
Thanks.
Only and are used.
Any recommendations on how to get RB to display these properly?
I am thinking of displaying the fields as DBRichText fields in the report
and then putting code in the onprint event to replace the HTML code with the appropriate
RTF formatting code.
Is there a simpler way? Any demos available that allow display of HTML tags?
I've taken a look at the dm0029.pas report which shows how to manipulate richtext fields in a report.
Thanks.
This discussion has been closed.
Comments
case like this you can use richtext instead of a memo and translate the HTML
into RichText. In fact, here's an example I put together that does exactly
that. It only handles and tags but it's trivial to expand it
to handle more. Hopefully this should get you on the right track.
http://www.digital-metaphors.com/tips/HTMLToRichText.zip
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
You guys are too good to be true.
You actually put together some sample code for me?
You saved me several hours of tinkering?
You need to put the word "ReportBuilder Evangelist" somewhere
in your signature
Bill
P.S. You've made a sale.
Does this example still exist somewhere?
We have also the same problem and have made a pass-through which can convert
html->RTF. I am not very happy with it, because there is an assignment
necessary in RAP for each used RTF control. IE has a good and fast rendering
engine which we use in TForm to show HTML in product descriptions instead of
the TRichEd components. I don't know if it's possible but perhaps someone
(or DM) can make a wrapper around IE and so it is also usable in RB.
If some other had a solution to use HTML directly inside a RB control let me
know it, I am highly interested.
If you are interested in the conversion code, send me a mail.
--
Chris (Eulanda)
www.eulanda.de
International ERP Systems
You might take a look at the TRichView component. This allows you to
display hypertext inside a report with the proper addon.
http://www.trichview.com/
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com