简体   繁体   English

在SSRS中导出到Excel时不显示背景图片

[英]Don't show background image when exporting to Excel in SSRS

Apparently when exporting a SQL Server Reporting Services document to Excel XLS any background image that you've included is tiled across the whole spreadsheet and not just placed neatly up in the top corner like is shown in the Report Viewer. 显然,将SQL Server Reporting Services文档导出到Excel XLS时,您包含的所有背景图像都会平铺在整个电子表格中,而不仅仅是像报表查看器中那样整齐地放置在顶部角上。

Does anyone know of any work arounds that would either: 有谁知道以下任何可行的解决方法:

A) Don't show the background at all in XLS only A)不要只在XLS中显示背景

B) Show the image once up in the corner like is done in the viewer (first image) B)像在查看器中一样,一次在角落显示图像(第一个图像)

正确的背景

But Excel is giving me this!! 但是Excel给我这个! It looks terrible. 看起来糟透了。 Excel平铺故障

SSRS 2008R2 added a function to help with this sort of scenario. SSRS 2008R2添加了一个功能来帮助解决这种情况。

I haven't used this much, but this formula should change the background image if you are rendering to Excel: 我用的不是很多,但是如果要渲染到Excel,此公式应会更改背景图像:

=IIF(Globals!RenderFormat.Name ="EXCEL", "", "MyBackgroundImageName")

Here's a blog with more details on RenderFormat . 这是一个有关RenderFormat的更多详细信息的博客。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM