开发者

Reporting Services HTML export - image resizing issue

 

Hello.

In order to execute reports’ rendering into the HTML 4.0 format I use the ReportExecutionService class

In order to get exported report as a stream I use the following code:

 

var ms = new MemoryStream(connection.Render(format, dev_info, out ext, out mime_type, out encoding, out warnings, out streamIds));

 

The issue is: when I display the received stream in a browser, the images with the “Fit proportional” property display incorrectly.

The original SSRS reportViewer and my project the images display as in the picture below:

image 1

Image properties in the Designer:

im开发者_StackOverflow社区age 2

 

What configuration settings should I set so that I am able to display exported report with images from my application as in the original SSRS reportViewer?


In my experience the best way to include images in reports is to pre-size the images to the actual size you want them displayed in the report and then set to use "Original Size". Using "Fit Proportional" often seems to result in poor image quality when the image is resized, it could also be causing the issue you are seeing as well.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜