Microsoft.Reporting.* vs XML/XSLT

坚强是说给别人听的谎言 提交于 2019-11-30 14:56:47

A couple of things to consider.

1) Reporting Services are part of Sql Server, so you may have an extra license issue if you go that route.

2) Reporting Services can serve up web pages, or be used in WinForms with full paging, sorting, sub reports, totals etc etc - that's really hard in XSL. It will also play nicely with printers.

3) Reporting services comes with a WYSIWYG editor to build reports. It's not perfect by any means, but a lot easier than hand crafting.

4) Using XSL to create XHTML can be real performance hit. XSL works on an entire XML Dom, and that maybe a big document if you're dealing with a multipage report. I'd expect Reporting Services to work a lot faster.

5) Reporting Services can leverage the whole of .Net, so you can get a lot of other functionality for free.

Taking all that on board, using Reporting Services will save you time, unless your reporting requirements are very simple. It is less fun though.

Agree with most of MrTelly's comments with the following exceptions and additions:

  • Unless you're dumb about your XSLT and your reporting data is HUGE (100+ MB -- bare in mind I'm talking about the data that feeds the report and NOT the source data), performance isn't likely to be a significant problem. We've built an XML/XSLT reporting system that takes .NET datasets and transforms them to reports on the fly and with properly written XSLT, performance is mostly subsecond (for large datasets it can be longer, but nothing horrible for a web app).

  • Report Layout with an XML/XSLT solution is essentially unlimited, with Reporting Services, you are restricted to the constructs within RDL (Microsoft's Report Definition Language). If you need something more complicated than standard reporting structures, Reporting Services will be frustrating.

Data Dynamics Reports and ActiveReports (and other third party .NET tools) can also report directly off of objects and have a developer-friendly licensing policy.

seems you could also generate the xml from your objects and then create your native ReportViewer Report from that XMl as well

Building Reports from XML Documents using ReportViewer

http://www.c-sharpcorner.com/UploadFile/mahesh/XmlReports04182007115639AM/XmlReports.aspx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!