cancel
Showing results for 
Search instead for 
Did you mean: 

HTML interpretation of textfield does not work fine

Former Member
0 Kudos
423

Using CR 2011.

In a datafield I have XHTML formatted text (coming from C1Edit control for winForms of ComponentOne)

I choosed HTML text interpreatation for the field in the report.

1. the padding style is ignored by Crystal report, doesn't matter if I use padding: or padding-bottom. With or without padding the li-elements are close to each other with no distance between the paragraphs.

2. The color (#ff0000 RED) is shown for the part "zum Teil " but not for "auftretender Schmerz".

It seems to be by hazard whether formatting is done or not done.

<body>

    <ol style="font-size:12;">

      <li style="padding-bottom:12pt;">

<span style="FONT-SIZE: 12pt; FONT-FAMILY: Arial">akut  <span style="color: #ff0000">auftretender Schmerz </span>in der LWS/(L5/S1), <span style="color:#ff0000">zum Teil  </span>in das rechte Bein ausstrahlend.</span>

        <p><span style="FONT-SIZE: 12pt; FONT-FAMILY: Arial"></span></p>

      </li>

      <li style="padding-bottom:12pt;">

<span style="FONT-SIZE: 12pt; FONT-FAMILY: Arial">Rezidivierende Darmreizungen zum teil akut</span>

      </li>

    </ol>

</body> 

I'm a  a very disappointed user

Wilfried Engstler

Accepted Solutions (1)

Accepted Solutions (1)

DellSC
Active Contributor
0 Kudos

Crystal only supports a subset of HTML tags and attributes.  Here is what it supports:

Tags

html

body

div (causes a paragraph break)

tr (causes only a paragraph break; does not preserve column structure of a table)

span

font

p (causes a paragraph break)

br (causes a paragraph break)

h1 (causes a paragraph break, makes the font bold & twice default size)

h2 (causes a paragraph break, makes the font bold & 1.5 times default size)

h3 (causes a paragraph break, makes the font bold & 9/8 default size)

h4 (causes a paragraph break, makes the font bold)

h5 (causes a paragraph break, makes the font bold & 5/6 default size)

h6 (causes a paragraph break, makes the font bold & 5/8 default size)

center

big (increases font size by 2 points)

small (decreases font size by 2 points if it's 8 points or larger)

b

i

s

strike

u

ul  ( bulleted list )  Important Note: The bullet will not show up as a regular size bullet, but as a small dot.

ol  ( ordered list )

li   ( tag defining a list item used for both list type: ul and ol. )

a (hyperlink)

Attributes

align

face

size

color

font-family

font-size

font-style

font-weight

strong ( bold )

href    Important Note: All other attributes for the hyperlink tag <a> are not supported.

Example: The attribute: target='_new', to open the hyperlink in a new window is not supported.

-Dell

Former Member
0 Kudos

The answer may be correct for the padding-Attribute, but it does not explain, why one of the color attributes is working, the other not. In the list, color is mentioned as a supported attribute. So it is not the coerrect answer, it just repeats the documentation. I was able to read and find the documentation by my own.

The lsit of tags says, that the tag "style" is working, then also the attrbutes for this tag should work. It is very poor, that I have no possibility to arrange the li elements with a distance one from the other.

I tried to insert an empty <p></p> Paragraph, but this ist just ignored !!!

<p> is also in the list of supported tags, so it should work and not be ignored !!

I could try, to inserta <p>xxx</p> with xxx in white color, but, as we can see, the color is not working properly.

SAP should not name this feature "HTML" interpretation, better name it:

"a little bit like HTML interpretation but most of it does not work"

Answers (0)