SSRS Report with Logo Image export to Excel

时间:2015-11-12 11:21:59

标签: excel reporting-services report

I have created some reports with the Microsoft SQL Server Report Builder and I'm trying to add a logo image to the top of the report. The report works so far and I managed to add the logo.

The problem is, that the logo doesn't show up after exporting it to Excel.

What I have tried so far (Image is Embedded and not from a Database or External):

  • Set a background image for the whole report and use different BackgroundRepeat settings. Result: Clip worked nice while displaying on the web browser, but the image was repeated x and y direction when exporting to Excel.

  • I have tried to edit the RDL manually and set the BackgroundRepeat to "NoRepeat" for the background image. Result: Couldn't upload the report because of invalid BackgroundRepeat value.

  • I have created an extra textbox for the image and only added a whitespace so that the field would be displayed. Result: Worked fine in browser, empty cell in Excel (I have read about Excel not being able to display images in cells).
  • I have created a header in the Report Builder and added the logo image there. Result: Again good in Browser, empty cells when exporting to Excel.

I hope someone can help me with this problem. I just want to have the logo somewhere in the top (preferably top left above the table), only once (not repeating) and both for displaying the report in the browser and for the excel export.

EDIT: The screenshots are from the last bulletpoint version. The file format is jpeg and set in the MIMEType field.

Report-Online:

enter image description here Excel-Export-Version:

enter image description here

1 个答案:

答案 0 :(得分:1)

我能够复制你的问题。问题是背景图像(无论是矩形或文本框或表格单元格的背景图像)都不会被带入Excel输出。您需要创建一个图像对象。据我所知,图像对象将传递给Excel导出的文件。我尝试了多种设置组合,每次都会在Excel文件中显示图像。请注意,您甚至可以创建一个图像对象,然后将该图像拖到Tablix的单元格中,它仍然会出现在Excel文件中。也就是说,当您将图像对象拖动到Tablix单元格时,该单元格不能包含任何图像。

您是否有特殊原因将图像用作文本框的背景而不是图像对象?

顺便说一下,我在SSRS 2008和SSRS 2008 R2中验证了这一点