Search code examples
asp.netiframereporting-servicesrdlcmicrosoft-reporting

Microsoft ReportViewer: group multiple images into sprite


I have an RDLC-report which contains a lot of small images (hundreds). When I'm opening it using SSRS-portal it groups all images into one sprite, loads it in one call and opens fast.

Sprite image example

But if I embed it into my asp.net mvc application via iframe using ReportViewer control from Microsoft.ReportingServices.ReportViewerControl.WebForms package, it simply loads each image separately (making hundreds of calls) and opens very slow.

Separate image example

Network calls

I'm using the last version of the ReportViewer control now - 14.0.0.0. But also I've tried older versions without success. Except this there is no more difference working with this report via SSRS-portal or via my own portal.

Does anybody know how to force it use sprites instead of separate images when you embed it into your own portal?


Solution

  • After some research I've found that it seems to be a known issue. Such optimization of images presents in native mode (e.g. when you're using SSRS-portal) and doesn't present in integrated mode (e.g. when you embed report into your portal).

    Here are the links where I've found the most important information:

    What’s Up With the Slow SSRS R2 Rendering in SharePoint 2010 Integrated Mode?

    The switch back to SSRS Native mode for Performance Reasons

    SSRS 2008 R2 Add-in Performance Issues