日期:2014-05-20  浏览次数:20797 次

rdlc报表生成图片问题。
我用这种方式生成图片。

string deviceInfo = "<DeviceInfo>
  <OutputFormat>PNG</OutputFormat>
  <PageWidth>21cm</PageWidth>
  <PageHeight>29.7cm</PageHeight>
  <DpiX>300</DpiX>
  <DpiY>300</DpiY>
  <MarginTop>0cm</MarginTop>
  <MarginLeft>0cm</MarginLeft>
  <MarginRight>0cm</MarginRight>
  <MarginBottom>0cm</MarginBottom>
</DeviceInfo>";
byte[] byteImage = localReport.Render("Image", deviceInfo);



问题1: 不能设置图片的位深度(或者说设置了没用)。
问题2:一直调用时,内存飙升,内存没能及时释放。
问题3:速度有点慢,大概0.5秒出一个(localReport.Render 就这一句所需的时间)。


有没有方法解决以上的问题, 或者有没其他生成图片的方式。

------解决方案--------------------

------解决方案--------------------

------解决方案--------------------

------解决方案--------------------

------解决方案--------------------
SVG生成PDF
------解决方案--------------------