德尔福PDF生成 [英] Delphi PDF generation

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

问题描述

我们正在使用 Fast Reports 来创建报告,但我们对其创建的 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

Delphi 有哪些好的 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: 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, ...

我们在使用组件时遇到的一些小问题

Some minor issues we have come accross working with the component

  1. 在组件内部深处的某个地方,Application.Processmessages 被调用.您必须确保您的代码处理重入.
  2. 我们必须将 TgtDocSettings 组件的 Preferences.UseImagesAsResources 设置为 True,以便在打印到除 PDF 之外的任何其他内容时解析 AV.
  3. 可能是由于我们使用组件的方式,但打印的第一个页面始终是纵向.如果需要,我们必须添加对 gtRBExportInterface.Engine.Settings.Page.Orientation 的调用以将方向设置为横向.

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

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