Crystal can interpret the HTML but not all HTML codes are supported.
There is an article that lists the supported HTML but I can't find it.
mlmcc
Main Topics
Browse All TopicsI have a C# Web project that involves storing Rich Text Editor content (HTML is being stored in SQL tables).
Example:
SELECT Title FROM MyDatabase.dbo.FancyTable ===>
'<a href="http://www.yahoo.com
I have Crystal reports 10.5 installed, and it's not rendering that html at all. Will Crystal Reports 11 work? If not, what are my options? I need a header and footer to reappear on each page, and the document needs to be in PDF format.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
As mlmcc said, CR 10 can interpret HTML, at least to some degree. Right-click on the field, select "Format Field", go to the Paragraph tab and under "Text Interpretation", select "HTML Text". When I do that with your example string, the report shows "Website This is bold."
If all that you're interested in is having the text display properly, that may be all that you need. However, if you want the link (to Yahoo in your example) to actually work, that may be a problem. The two basic options are to set the link address manually in the field format, or tell CR to use the value in the field, which doesn't work in this case, presumably because the field value would need to be the URL, and nothing else. If you need the link to work, you could theoretically create a formula that would pick the URL out of the field and have CR use that for the link.
James
Hi James0628,
There are tags that aren't supported very well. Also, I would only need a section of the text field to be a link, not the entire link. I'm not sure this can be done with the description you provided. I also thought there was a difference between the tags supported between Crystal Reports 10 and Crystal Reports 11. The one I am using appears to be 10.5 (VS2008).
For anyone who is curious about 11's supported tags, I think it's this (found here: http://www.tek-tips.com/vi
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
I don't normally use hyperlink fields in CR reports, but the hyperlink settings are part of the field format, so, by definition, they will apply to the entire field (click on any part of the field and the Web page or whatever is opened). I don't think there's going to be any way around that. If the HTML interpretation would see the href= and make that part of the field a link, then it might work, but I don't think it works that way.
Later versions of CR may support tags that CR 10 does not. CR 10 is the only version I've used.
James
For this particular project, I think I'll go with Reporting Services 2008 (which does support hyperlinks). This has been a disappointing experience with Crystal Reports.
The database contains HTML (from a Rich Text/HTML Editor like the one from ASP.Net's AJAX Toolkit). I need that HTML to show up perfectly in a report that must have a header and footer on each page. Crystal Reports is failing me, and I know Reporting Services has a lot of issues as well. Any suggestions as to the best way to proceed from here?
Business Accounts
Answer for Membership
by: MuraliKanthPosted on 2009-09-21 at 20:32:27ID: 25389344
I dont think you can show the html content as parsed text in CR.
You can alternatively try to split the URL text from the html content and render that as link from the
formula editor.
Right-Click the field you want to use as the HYPERLINK.
Then choose:
FORMAT TEXT >>> HYPERLINK >> select from internet.
Click on the Formula button near to the URL box. Enter the db field which fetches the html content, write a logic to take the href attribute and return it.
-Murali*