简体   繁体   English

用于Excel导出的打印格式SSRS报告

[英]Print Format SSRS Report For Excel Export

I created a SSRS Report and I am Exporting it to an Excel Sheet. 我创建了SSRS报告,并将其导出到Excel工作表。 I am manually print formatting the excel sheet every time I want to print it. 每次我要打印时,我都在手动打印Excel表格的格式。 The width of the report that I've created is slightly bigger so every time I print the excel sheet I go to Page Layout --> and set Width to 1 page. 我创建的报告的宽度略大,因此每次打印Excel工作表时,我都会转到“页面布局->”并将“宽度”设置为1页。 Is it possible to do this in SSRS itself so that I don't have to make any manual changes to the excel sheet when I export.? 是否可以在SSRS本身中执行此操作,以便在导出时不必对excel工作表进行任何手动更改?

I googled, Couldn't really find any solution. 我用谷歌搜索,真的找不到任何解决方案。

Layout of my report - 我的报告格式- 在此处输入图片说明

Other problem I am facing is - When I export the SSRS report the footer doesn't exported properly Check This - The date doesn't get exported and I want the 'ABC' to appear in the center box but both date and the text appears in the same box. 我面临的另一个问题是-导出SSRS报告时,页脚未正确导出检查此-日期未导出,并且我希望'ABC'出现在中心框中,但同时显示日期和文本在同一个盒子里。

This is how my footer looks in ssrs - 这是我的页脚在ssrs中的样子- 在此处输入图片说明

Please help. 请帮忙。 TIA TIA

Regarding the issue with your Footer. 关于页脚的问题。 It is exported to Excel, but you will not see it on the sheet like you do with the rest of the data. 它已导出到Excel,但是您不会像处理其余数据那样在工作表上看到它。 It uses the built in Footer functionality so that it can be repeated on every page. 它使用内置的页脚功能,因此可以在每个页面上重复。

Go to the Insert menu and click Header & Footer. 转到“插入”菜单,然后单击“页眉和页脚”。 You should see the footer like this: 您应该看到这样的页脚: 在此处输入图片说明

Also, if you go to the Print Preview, you'll see that the footer is indeed repeated on each page. 另外,如果转到“打印预览”,则会看到在每个页面上确实重复了页脚。

Regarding the width issue, make sure you take the page margins into account when calculating the width of the report. 关于宽度问题,在计算报告的宽度时,请确保考虑到页边距。 These can be adjusted in the Report Properties. 这些可以在报告属性中进行调整。 By default they are set to 1 inch on either side. 默认情况下,它们的两边都设置为1英寸。 So right off the bat you may be loosing 2 inches of space. 因此,马上就可能失去2英寸的空间。

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

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