Tiny fields show up when rendering SSRS reports in HTML viewed in Chrome.
This is the current construction of my report:
When I run it in a browser other than Chrome, it looks almost normal (I don't know why the HTML rendering is different from the expected result):
But in Chrome, it's a whole different story. Tiny boxes appear out of nowhere. How can I get rid of it?
+3
source to share
1 answer
It seems that the boxes are generated on page load. It creates a gif called "Blank.gif", here is the complete code when I entered "Inspect Element":
<img src="/Reserved.ReportViewerWebControl.axd?Culture=1033&CultureOverrides=True&UICulture=1033&UICultureOverrides=True&ReportStack=1&ControlID=712a96453ecc4eb89b71439a5477d6c6&Mode=true&OpType=ReportImage&ResourceStreamID=Blank.gif"/>
I solved this by simply creating a CSS style that finds img elements in the body that matches the origin of that image element using "Blank.gif" and then hides it.
Here is my solution:
<style>
body:nth-of-type(1) img[src*="Blank.gif"]
{
display: none;
}
</style>
+1
source to share