Page 1 of 1

Text field with Allow Html Tags option shows nothing in OO

Posted: Tue Aug 08, 2017 9:24 am
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.

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

Posted: Wed Aug 09, 2017 1:14 am
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

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

Posted: Thu Aug 10, 2017 9:00 am
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.

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

Posted: Fri Aug 11, 2017 12:33 pm
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.