简体   繁体   English

Asp.net SSRS 2008(RDLC)导出到Excel报告

[英]Asp.net SSRS 2008 (RDLC) export to Excel Report

I need to write a SSRS Report (RDLC) with Sub Report and directly export the report to Excel on asp.net button click event. 我需要使用Sub Report编写SSRS报告(RDLC),并在asp.net按钮点击事件中直接将报告导出到Excel。

Could someone please help me with whether this can be done without having to install SSRS ie no liscense required? 有人可以帮我解决这个问题是否可以在不安装SSRS的情况下完成,即不需要liscense吗?

The SSRS Report needs to render each Groups in to separate sheet.eg if there are 3 States, the report should show the data for each states in to different excel sheets. SSRS报告需要将每个组分成单独的sheet.eg,如果有3个状态,则报告应显示不同excel表中每个状态的数据。

I tried to do this with Crystal report, but crystal report doesn't support multiiple sheets. 我尝试使用Crystal报表执行此操作,但水晶报表不支持多页表。

Thank you. 谢谢。

I'm pretty sure that every option to parse SSRS reports available from Microsoft requires a license and installation, either on the server or on the client, wherever the .rdl is parsed. 我非常确定解析从Microsoft获得的SSRS报告的每个选项都需要许可证和安装,无论是在服务器上还是在客户端上,无论何处解析.rdl。 (Does Microsoft distribute any software that doesn't require some sort of license agreement?) (Microsoft是否分发任何不需要某种许可协议的软件?)

But some of the licenses do not require purchase and are freely available. 但有些许可证不需要购买,可以免费使用。 .rdlc files can be parsed and displayed in a ReportViewer control, which requires .NET and the "Microsoft Report Viewer 2010 Redistributable Package" If you look on that page, you'll see that SSRS is only required for Server processing mode. .rdlc文件可以在ReportViewer控件中解析和显示,这需要.NET和“Microsoft Report Viewer 2010 Redistributable Package”如果查看该页面,您将看到SSRS仅在服务器处理模式下需要。

There is a property "Pagebreak" you have to set on the tablix or table or other element to force a new tab, and then set the property "Pagename" on both the element before the pagebreak and the element after the pagebreak. 您必须在Tablix或表或其他元素上设置属性“Pagebreak”以强制使用新选项卡,然后在分页前的元素和分页后的元素上设置属性“Pagename”。 These names will appear on the tabs when the report is exported to Excel. 将报表导出到Excel时,这些名称将显示在选项卡上。 For more info : Report Design: Naming Excel Worksheets and Exporting to Microsoft Excel (Report Builder and SSRS) . 有关详细信息: 报表设计:命名Excel工作表导出到Microsoft Excel(报表生成器和SSRS)

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

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