Delphi PDF生成 [英] Delphi PDF generation

查看:1185
本文介绍了Delphi PDF生成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用快速报告创建报告,但我们对其创建的PDF的质量感到不满意。我知道我们可以插入其他PDF组件,而不是FastReports附带的组件,所以我的问题是

We're using Fast Reports to create reports but we're not very happy with the quality of the PDFs it creates. I know we can plug in other PDF components instead of the one that comes with FastReports so my question is

有什么好的PDF组件(免费或商业)德尔福?理想情况下,不需要任何dll。

What good PDF components are there out there (Free or Commercial) for Delphi? Ideally it should not require any dlls.

编辑:我买了 Gnostice ,因为它具有FastReports集成,源代码可用性和相当好的声誉。我发现一个问题(在我买了它之后),从FastReports到PDF的多页面报告,其中组件泄漏内存并破坏输出。我已经向Gnostice报告了,所以我想我们会在接下来的几天看到他们的支持有多好...

I bought Gnostice in the end as it had the FastReports integration, source available and a fairly good reputation. I did however find an issue (after I had bought it) with exporting multipage reports from FastReports to PDF where the component leaks memory and corrupts the output. I've reported it to Gnostice so I guess we'll see how good their support is in the next few days...

编辑2: strong> Gnostice回来了一个修复程序,纠正内存泄漏和损坏的输出。

Edit 2: Gnostice came back with a fix that rectifies the memory leak and the corrupted output.

推荐答案

我们正在使用Gnostice,很高兴。它允许我们将我们的ReportBuilder报告打印到PDF,HTML,XML,Excel,Gif ... ...

We are using Gnostice and are very pleased with it. It allows us to print our ReportBuilder reports to PDF, HTML, XML, Excel, Gif, ...


  1. 在组件的大部分深处,Application.Processmessages被调用。

  2. 我们必须将TgtDocSettings组件的Preferences.UseImagesAsResources设置为True,以便在打印到除PDF之外的其他内容时解析AV。

  3. 可能是由于我们使用组件的方式,但第一个打印页面总是肖像。如果需要,我们不得不向gtRBExportInterface.Engine.Settings.Page.Orientation添加一个调用以将方向设置为横向。

这篇关于Delphi PDF生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆