Render an SSRS report with a Map as an image map without actually having a ReportViewer on the page
- by Erica Merchant
I have a report that has a Map with spatial data. Clicking an object on that map sends you to other pages on the site.
I have tried a few different ways of displaying the report:
If I put a ReportViewer on the actual
page, the page sometimes takes 10+
seconds to load, but the report
viewer creates a fully operable image
map.
If I create a ReportViewer in the code behind, I can use the Render method to to format the report as HTML4.0 and get the streamids from which I can extract the image (painfully). This is pretty fast (1-2 seconds), but only gives me an image, no image map.
I can get a very similar functionality as the above example by using rendering extensions on the report URL to create an image and then set an image's source to this url. This is the fastest method, but still does not create an image map.
So is there a way to create an image map from the report without having to use the ReportViewer? Or a way to substantially speed up the Report Viewer?