Problem exporting RichText component to html.

Stimulsoft Reports.NET discussion
Post Reply
nik2010
Posts: 2
Joined: Fri May 28, 2010 5:02 am

Problem exporting RichText component to html.

Post by nik2010 »

Hello,

I have an .mrt report with only one component - Rich Text field. When I export this report to html the rich text converts itself into an image. If I look at the HTML Preview tab in the designer there rich text is exported to an image as well.

I expected the rich text would be exported to a "real" html. If the image was needed I could just use StiImageExportService instead of StiHtmlExportService.

I attached a narrowed down version of the template I am having the problem with.

Is there any way to get around this problem?

Thank you in advance,
Nikolay.
Attachments
486.report.mrt
(4.5 KiB) Downloaded 142 times
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Problem exporting RichText component to html.

Post by Jan »

Hello,

Sorry this is not possible. You can try to find specified tool to convert rtf to html.

Thank you.
nik2010
Posts: 2
Joined: Fri May 28, 2010 5:02 am

Problem exporting RichText component to html.

Post by nik2010 »

Hello,

I'm not trying to convert rtf to html using Stimulsoft. The rich text component will be a part of a bigger report. Actually, it is a part of a bigger report. What I showed is a very, very stripped down version of the real report. I need to export to html (but exporting rich text as an image will not do for me).

I do have a specific tool to convert rtf to html. Let's suppose I convert rtf to html myself, but how do I embed resulting html into the report when it is being exported into html? I mean I need to replace the image generated for the rich text component during exporting with my html somehow. Any way to do this?

Maybe I'm looking in a wrong direction (For example, maybe, Stimulsoft has some HtmlComponent. So if I use this hypothetical HtmlComponent instead of RichTextComponent, I do not have to deal with rich text in the first place). Any ideas are appreciated.

Thank you,
Nikolay.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Problem exporting RichText component to html.

Post by Ivan »

Hello,

Sorry this is not possible, and we do not have plans in developing this feature.

There is only one workaround: if you need a simple text with formatting, you may use the StiText component. Set the AllowHtmlTags property for the component.
Please check the "Test Html-tags simple.mrt" in attachment.

Thank you.
Attachments
490.Test Html-tags simple.mrt
(18.66 KiB) Downloaded 243 times
Post Reply