Text field with Allow Html Tags option shows nothing in OO

Stimulsoft Reports.NET discussion
Post Reply
alex-t
Posts: 3
Joined: Tue Aug 08, 2017 8:57 am

Text field with Allow Html Tags option shows nothing in OO

Post by alex-t »

Hello,

I add text box with option Allow Html tags, in MS Office it's works good, but in OpenOffice/LibreOffice empty blocks are shown.

It is possible to fix this?

Example here: https://github.com/alex-t0/StimulsoftTest, look AllowHtmlTags.mrt (very simple template).
In my github repo there is another example about page breaks, but it already asked here - here, i think that is same issue.
Attachments
AllowHtmlTags.mrt
(4.07 KiB) Downloaded 313 times
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Re: Text field with Allow Html Tags option shows nothing in

Post by Edward »

Hi Alex,

For the OpenOffice export format, please check the approach that has been suggested here:
viewtopic.php?f=8&t=36133&start=10

For the page break in MSOffice Export, please modify your code as follows to disable the RemoveEmptySpaceAtBottom feature:

Code: Select all

var settings = new StiWord2007ExportSettings();
settings.RemoveEmptySpaceAtBottom = false;
report.ExportDocument(StiExportFormat.Word2007, stream, settings);
Thank you,
Edward
alex-t
Posts: 3
Joined: Tue Aug 08, 2017 8:57 am

Re: Text field with Allow Html Tags option shows nothing in

Post by alex-t »

Hi Edward!

With page-breaks problem solved.

But I'm not understand solution for Text components with allowed html tags, sorry :(
I need to change output format to StiExportFormat.Odt? If I do this, document looks good, but block rendered as picture, not as text.
I want to generate docx with text blocks that works in OO and MS Office both.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Text field with Allow Html Tags option shows nothing in

Post by HighAley »

Hello.

This is a limitation of our export.
The export of HTML was not implemented.
If you need this feature, please, write a request to support@stimulsoft.com.

Thank you.
Post Reply