ccuenca
ccuenca

Reputation: 63

Show HTML with images in SSRS

I need to put into a SSRS report a field with HTML that contains images.

The HTML is rendered fine, but the images are ignored, i don't know if there are some restrictions to this, the docs are a little vague about this:

http://msdn.microsoft.com/en-us/library/dd207057.aspx

Thanks

Upvotes: 3

Views: 7335

Answers (1)

Bojan Borisovski
Bojan Borisovski

Reputation: 852

Referencing the official microsoft page for supported html tags in fields,

http://technet.microsoft.com/en-us/library/ff519562%28v=sql.105%29.aspx

It seems that the img tag is not supported in the field with enabled html.

The list of supported tags, taken from the link is below:

Supported HTML Tags

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>

Thus this is why the img tag is ignored and no error message is shown.

As a workaround, you could add the image separately, (if your design allows so), by parsing the image url from the html, and add it into a separate column of your tablix or list. If you have one that is.

Visit link below on how to add an external image:

http://msdn.microsoft.com/en-us/library/dd220527.aspx

Possible duplicate of this question:

Report Builder/SSRS and RDLs - HTML <img> support?.

Upvotes: 2

Related Questions