Hi,
After a long time I get a chance to update my blog. Nowadays I am working on project and using Crystal Report. I am passing HTML to crystal report to display data. But I find it out that Crystal Report not support all the HTML tags. For example Crystal Report will not recognize <br/> tag. If you want to add break tag don’t close it. Write it as <br>. Similarly I find it out that if you want to add multiple line breaks. Then multiple break tags <br><br> will not work in Crystal Report. It will only give single line break. But if you view the same code in a webpage you will see multiple line breaks. So the best I find it out is that instead of using <br> tag, you can use <p> tag for line breaks.
<p> </p> or for multiple line breaks <p> </p><p> </p>
The tags supported by Crystal Report are,
- 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) Remember not to close the tag
- 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
Crystal Report support the following attributes,
- align
- face
- size
- color
- style
- font-family
- font-size
- font-style
- font-weight