Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 11 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(5)
我认为您正在寻找一些报告生成器,正如它们所称的那样。 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.
即使我自己使用 FastReports,ReportBuilder 也值得在这里提及。
Even when I use FastReports myself, ReportBuilder worths a mention here.
另一种方法(我已经这样使用过)是在 Word 中使用邮件合并。效果很好。
简单的解决方案:
保存.csv文件,并通过word的COM接口触发与特定word模板的邮件合并。
您还可以通过 odbc 设置数据连接,而不是 .csv 文件,但这更难安装,而且更有可能失败。
邮件合并的优点:
缺点:
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:
Disadvantages:
您需要一个报告库,例如 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?
您正在寻找报告生成器。您的 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.