Click here to Skip to main content
15,877,591 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi,

Currently i am storing some HTML Content to Database column (sql server 2008), Along with some other details. And i need to Generate a Report using that data. But when showing that HTML in Crystal report Text field which has Text Interpretation set to HTML , Some html tags are not forming well. Like image () and Table ().
Is there any possible way to show HTML in cr report ?

I am using the Visual Studio 2008.

Regards,
Midhun T S

What I have tried:

I am currently showing the HTML in a Text field , by setting the text interpretation property set to HTM interpretation.
Posted
Updated 30-Oct-17 11:22am

1 solution

According to Crystal Report XI Help documentation - I am pretty sure it has not changed - the supported tags 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)
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
The supported attributes are:

align
face
size
color
style
font-family
font-size
font-style
font-weight

You will note that neither table or img tags are listed

Kind Regards
 
Share this answer
 
v2
Comments
Midhun Thadathil 3-Nov-17 2:18am    
Hi,
Thank you for the Response. So upgrading the report version won't work, right ? Is there any other way to print HTML ?
an0ther1 7-Nov-17 19:20pm    
Sorry about the delay in responding, have been offline.
Upgrading will not help - refer; https://apps.support.sap.com/sap/support/knowledge/public/en/1217084

The only level of support is for formatting text, not objects such as images , tables etc.

Kind Regards

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900