【问题标题】:Reporting Services HTML export - image resizing issueReporting Services HTML 导出 - 图像大小调整问题
【发布时间】:2011-06-09 07:15:53
【问题描述】:

 

你好。

为了将报表渲染成 HTML 4.0 格式,我使用了 ReportExecutionService 类

为了将报告导出为流,我使用以下代码:

 

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

 

问题是:当我在浏览器中显示接收到的流时,具有“适合比例”属性的图像显示不正确。

原来的SSRS reportViewer和我的项目图片如下图所示:

image 1

设计器中的图像属性:

image 2

 

我应该设置哪些配置设置,以便能够像在原始 SSRS reportViewer 中一样显示包含来自我的应用程序的图像的导出报告?


【问题讨论】:

    标签: reporting ssrs-2008 reporting-services html-rendering


    【解决方案1】:

    根据我的经验,在报告中包含图像的最佳方式是将图像预先调整为您希望它们在报告中显示的实际大小,然后设置为使用“原始大小”。 调整图像大小时,使用“Fit Proportional”通常会导致图像质量不佳,这也可能导致您看到的问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-12-06
      • 2017-12-09
      • 1970-01-01
      • 1970-01-01
      • 2012-10-17
      • 1970-01-01
      • 2017-01-04
      • 1970-01-01
      相关资源
      最近更新 更多