Tiny boxes appear when rendering SSRS reports in HTML viewed from Chrome

后端 未结 1 1215
失恋的感觉
失恋的感觉 2021-01-19 14:34

This this the current design of my report:

When I run it on different browser except for Chrome, it\'s looks almost ok (I have no idea why the HTML render i

相关标签:
1条回答
  • 2021-01-19 15:20

    It seems that the boxes are generated upon loading the page. It creates a gif image named "Blank.gif" here is the complete code when I entered 'Inspect Element':

    <img src="/Reserved.ReportViewerWebControl.axd?Culture=1033&amp;CultureOverrides=True&amp;UICulture=1033&amp;UICultureOverrides=True&amp;ReportStack=1&amp;ControlID=712a96453ecc4eb89b71439a5477d6c6&amp;Mode=true&amp;OpType=ReportImage&amp;ResourceStreamID=Blank.gif"/>
    

    I solved it by just creating a CSS style that finds img elements in the body that matches the source of that image element with "Blank.gif" and then hides it.

    Here is my solution:

    <style>
            body:nth-of-type(1) img[src*="Blank.gif"]
            {
                display: none;
            }
        </style>
    
    0 讨论(0)
提交回复
热议问题