使用数据库内容动态生成 PDF

发布于 2024-09-26 12:14:38 字数 184 浏览 0 评论 0原文

我正在生成一个 5 页的 PDF 文件,所有数据都来自 Sqlserver。 PDF包含大量图像、水印,并且必须根据数据库数据动态控制数字部分。生成 PDF 的最佳方法是什么。我正在与水晶报告、MSRS 争论[有时它需要安装 Activex,这只能由管理员完成]、Itextsharp、telerik ???任何建议都会对我有帮助。

谢谢

I am generating a PDF file which is 5 pages and all the data are coming from Sqlserver. The PDF contains lot of images,watermark and the number sections has to controled dynamically based on database data. What is the best way to generate PDF.i am debating with Crystal report,MSRS[sometimes it requires Activex installation,which is done only by Admin],Itextsharp ,telerik ??? Any suggestion would help me.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

毁我热情 2024-10-03 12:14:38

就我个人而言,尽管水晶报告有更多格式可以导出到 IIRC,但我在 MSRS(本地报告)方面取得了巨大成功。
我记得使用过一次 Itextsharp,我认为根据安装的 Adob​​e reader 版本,您可能会遇到问题,但您必须亲自看看。

至于 MSRS,是的,您必须安装它,但像 Crystal Reports 一样安装一次。

我没有创建动态创建的报告,我使用了“模板”,但如果您谈论的是动态创建的表,那么我认为最好是先使用 CReports 和 MSRS 测试一份报告,然后查看输出。如果您必须做很多报告,然后我就会明白为什么你需要动态创建,我没有,但肯定会研究它,因为这是一个任务,必须调整列大小,运行和打印,然后一次又一次地重新执行,直到它适合。

我什至遇到过诸如一半行打印在页面底部之类的问题……只是分享我的经验。

Personally, I've had good success with MSRS(local reports) although crystal reports have more formats to export to IIRC.
I remember using Itextsharp once and I think you might come into a problem depending on the version of Adobe reader installed, but you'd have to see that for yourself.

As for MSRS, yes you have to install it but once off like Crystal Reports.

I didn't create dynamically created reports, I used a "template" but if you're talking about dynamically created tables then I think the best would be to test one report first, with both CReports and MSRS and see the output.If you have to do many reports then I'd understand why you need dynamic creation, I didn't but will definitely look into it since it's a mission to have to resize columns,run and print and re do that again and again until it fits.

I even came across problems like half of the row was printed at the bottom of the page..just sharing my experience.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文