Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I render HTML from SQL Database in SSRS 2005?

I have html in an MS SQL DB. I would like to render the html on a SSRS page, is this possible?

like image 295
Scott and the Dev Team Avatar asked Apr 13 '09 19:04

Scott and the Dev Team


People also ask

How do I render HTML tags in SSRS report?

Render html tags in SSRSDouble click on the TextBox that holds the Multiline custom field value. In General section, and Below Markup types > Selects “HTML – Interpret HTML tags as styles”.

How do I display html content in SSRS report?

we can display html content in ssrs by selecting 'HTML-Interpret html tags as styles' present in placeholder properties.


3 Answers

This kind of capability was deliberately disabled in SQL 2005 Reporting Services because of 'security reasons'. I believe the advice at the time was to record any html as an image and embed the image in the report. I decided to abandon reporting services all together instead. Sorry!

If you are using SQL 2008 you can use some HTML in your reports. However, there are some limitations to the markups that can be used:

The following is a complete list of tags that will render as HTML when defined as placeholder text:

* Hyperlinks: <A href>
* Fonts: <FONT>
* Header, style and block elements: <H{n}>, <DIV>, <SPAN>,<P>,
          <DIV>, <LI>, <HN>
* Text format: <B>, <I>, <U>, <S>
* List handling: <OL>, <UL>, <LI>

Any other HTML markup tags will be ignored during report processing

like image 50
Noel Kennedy Avatar answered Oct 15 '22 23:10

Noel Kennedy


I do not believe so. The output that is created from an SSRS report is not an HTML document and I've never been able to get html output to render correctly in the report.

like image 33
TheTXI Avatar answered Oct 15 '22 21:10

TheTXI


I don't know of any easy way of doing it, you may have to write your own custom control to do this.

like image 41
Srikar Doddi Avatar answered Oct 15 '22 21:10

Srikar Doddi