DELPHI 文档生成器

发布于 2024-10-20 19:33:39 字数 1536 浏览 3 评论 0原文

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

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

发布评论

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

评论(5

南…巷孤猫 2024-10-27 19:33:39

我认为您正在寻找一些报告生成器,正如它们所称的那样。 FastReport 是我想到的 - 他们肯定有 PDF 和 RTF 生成功能,而且可能现在还有更多。

I think you are looking for some report generator, as they are called. FastReport is the one that comes to my mind - they have PDF and RTF generation for sure, and probably now have more.

终难愈 2024-10-27 19:33:39

即使我自己使用 FastReports,ReportBuilder 也值得在这里提及。

Even when I use FastReports myself, ReportBuilder worths a mention here.

忆离笙 2024-10-27 19:33:39

另一种方法(我已经这样使用过)是在 Word 中使用邮件合并。效果很好。

简单的解决方案:
保存.csv文件,并通过word的COM接口触发与特定word模板的邮件合并。
您还可以通过 odbc 设置数据连接,而不是 .csv 文件,但这更难安装,而且更有可能失败。

邮件合并的优点

  • 您的客户不需要开发人员(您=])来创建或维护模板。您可以教授平均水平的人员MsWord 用户如何在几分钟内创建模板;
  • 您的客户得到“正常”的 Word 文档作为输出;
  • 易于实施;

缺点:

  • 某些事情在Word模板中很困难,例如嵌套组,因此可能性并不是无限的(就像您手动滚动某种报告生成器一样);
  • 生成报告的机器上需要安装Word;

Another approach (I've used it like that), is to use mail merge in Word. Works great.

Easy solution:
Save a .csv file, and trigger a mail merge with a certain word template via word's COM interface.
Instead of a .csv file you can also set up a data connection via odbc, but that's harder to install, and more likely to fail.

Advantages of mail merging:

  • Your client doesn't need a developer (you =]) to create or maintain templates. You can teach an average MsWord user how to create templates in a matter of minutes;
  • Your client gets "normal" word documents as an output;
  • Easy to implement;

Disadvantages:

  • Certain things are difficult in word templates, like nested groups, so possibilities are not endless (like they would if you hand-roll some sort of report generator);
  • Word needs to be installed on the machine where the reports are generated;
倾城°AllureLove 2024-10-27 19:33:39

您需要一个报告库,例如 FastReports、RAVE、Greatis Print Suite 等。请参阅此讨论:Delphi 最好的报告组件?

You need a report library like FastReports, RAVE, Greatis Print Suite, etc.. See this discussion: The best reporting component for Delphi?

无所谓啦 2024-10-27 19:33:39

您正在寻找报告生成器。您的 Delphi IDE 可能捆绑了一个,但无法告诉您是哪一个,因为随着时间的推移,它们捆绑了不同的报告生成器。

寻找:

其中任何一个都可以为您提供打印和 PDF 报告。我认为他们都有能力产生 DOC“出口”,但质量会有所不同。

You're looking for an Report Generator. You probably have one bundled with your Delphi IDE, can't tell you which one because they bundled different report generators over time.

Look for:

Any of those can give you grate printed and PDF reports. I think they're all capable of generating DOC "exports", but the quality will vary.

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