Since you are using .Net, you can use a local rdlc report (rather than having to install reporting services.) and use the report viewer to export as a pdf.
Basically, just build the report and call ReportViewer.LocalReport.Render() specifying "PDF" for the format.
Actually, iTextSharp is LGPL so, if I understand that license correctly, you can use it in a closed-source application without any problem (please read the license to make sure, though). I think with LGPL all you'd have to do is include the license from iTextSharp with your product. If you are developing a for-pay service then I don't think you have any obligation (legally) to do anything extra.
SQL Server Reporting Services可以生成 PDF 格式的报告。 它与 Crystal Reports 非常相似,并且是 SQL Server 的一部分,因此无需额外付费。 而且它非常容易实现。
SQL Server Reporting Services can generate reports to PDF. Its very similar to Crystal Reports and its a part of SQL Server, so no extra cost there. And its very easy to implement.
发布评论
评论(5)
由于您使用的是.Net,因此您可以使用本地 rdlc 报告(而不必安装报告服务。)并使用报告查看器导出为 pdf。
基本上,只需构建报告并调用 ReportViewer.LocalReport.Render() 并指定“PDF”格式即可。
我已经为几个项目做过了——效果很好。
Since you are using .Net, you can use a local rdlc report (rather than having to install reporting services.) and use the report viewer to export as a pdf.
Basically, just build the report and call ReportViewer.LocalReport.Render() specifying "PDF" for the format.
I've done it for several projects - works great.
如果您感觉特别受虐,可以使用 adobe PDF 格式规范。
If you are feeling particularly masochistic the adobe PDF format specification is available.
警告:我不是律师!
实际上,iTextSharp 是 LGPL,因此,如果我正确理解该许可证,您可以在闭源应用程序中使用它而不会出现任何问题(不过,请阅读许可证以确保)。 我认为对于 LGPL,您所要做的就是将 iTextSharp 的许可证包含在您的产品中。 如果您正在开发付费服务,那么我认为您没有任何义务(法律上)做任何额外的事情。
Warning: I am not a lawyer!
Actually, iTextSharp is LGPL so, if I understand that license correctly, you can use it in a closed-source application without any problem (please read the license to make sure, though). I think with LGPL all you'd have to do is include the license from iTextSharp with your product. If you are developing a for-pay service then I don't think you have any obligation (legally) to do anything extra.
XML + XSLT + nFOP = PDF
上次我检查 nFOP 需要 J# 运行时,网址: http://sourceforge.net /projects/nfop/
确保检查许可证的条款和条件。
K
XML + XSLT + nFOP = PDF
last time i checked nFOP needed J# runtime, url: http://sourceforge.net/projects/nfop/
Make sure to check the T&C of license.
K
SQL Server Reporting Services可以生成 PDF 格式的报告。 它与 Crystal Reports 非常相似,并且是 SQL Server 的一部分,因此无需额外付费。 而且它非常容易实现。
SQL Server Reporting Services can generate reports to PDF. Its very similar to Crystal Reports and its a part of SQL Server, so no extra cost there. And its very easy to implement.