text field with HTML content

Stimulsoft Reports.Flex discussion
Locked
User avatar
Chipo
Posts: 44
Joined: Thu Sep 13, 2012 4:09 am
Location: Sydney, Australia

text field with HTML content

Post by Chipo »

Hi,

I display html content in the report and font size for rendered report is microscopic.
I set properties
allow html tags:true
can grow/shrink:true

html code itself looks like that

Code: Select all

<HTML><BODY>

<p><font size="1" face="Arial"><b><u>Tuesday 2/11/2010 04:55:22 Kara Nitties</u></b></font></p>
<p><font size="3" face="Times New Roman">Dear Kara,</font></p>
<p><font size="3" face="Times New Roman">Property used for access to internal CrossTab variables. Internal use only.</font></p>
<p><font size="3" face="Times New Roman">Property used for access to internal CrossTab variables. Internal use only.</font></p>
<p><font size="3" face="Times New Roman">When: Tuesday, 20 October 2015</font></p>
<p><font size="3" face="Times New Roman">Pax: 1800- 2000</font></p>
<p><font size="3" face="Times New Roman">Property used for access to internal CrossTab variables. Internal use only.</font></p>
<p><font size="3" face="Times New Roman">Please contact me on 9332 5239 should you have any questions.</font></p>
<p><font size="3" face="Times New Roman">Thank you for your continued support.</font></p>
<p><font size="3" face="Times New Roman">Kind regards,</font></p>
<p><font size="3" face="Times New Roman">Yvonne</font></p>
<a name="table01"></a>
<div align="left">
<table width="700">
<tr valign="top"><td>&#160;</td>
  <td>&#160;</td>
  <td>&#160;</td>
  <td>&#160;</td>
  <td>&#160;</td></tr>
</table>
</div>
</BODY></HTML>
When I load the same html code in browser everything is as predicted. But report shows all fonts shrunk to unreadable size

What I do wrong?

Best regards.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: text field with HTML content

Post by HighAley »

Hello.

We don't have full support of the HTML. You could find supported tags in our documentation.
The size attribute of the font tag is in points. So you get tiny font size.

Thank you.
User avatar
Chipo
Posts: 44
Joined: Thu Sep 13, 2012 4:09 am
Location: Sydney, Australia

Re: text field with HTML content

Post by Chipo »

Aleksey Andreyanov wrote:Hello.
We don't have full support of the HTML. You could find supported tags in our documentation.
The size attribute of the font tag is in points. So you get tiny font size.
That is a point. From HTML point of view size 3 is pretty much like words's 8

from w3c specification: A number from 1 to 7 that defines the size of the text. Browser default is 3.

It should not be treated as size in pixels.

What shall I do? My html is correct.

Best regards.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: text field with HTML content

Post by HighAley »

Hello.

We have added the InterpretFontSizeInHtmlTagsAsInHtml option (StiOptions.engine.interpretFontSizeInHtmlTagsAsInHtml for Flex components). If you set it to true, the size of the font will be as in HTML specification.
Also we have fixed the &#160; symbol problem in WYSIWYG mode.
All fixes will be available in our next prerelease build.

Thank you.
Locked