当前位置: 动力学知识库 > 问答 > 编程问答 >

Document generator for DELPHI

问题描述:

I need to allow my clients to generate documents (DOC, PDF, etc) from a DELPHI application I just released, based on information and data they have in the database.

The solution should be templates based. They must be able to edit and change the basic text and place to place replaceable “codes”

The generator must replace the code be database data and selected images, and export or print the result.

Is there a tool for this?

thanks

UPDATE ----

I need to enable my client to generate their business proposal from my software. This is only text with photos, and simple replaceable codes.

But the photos are all over the text, they are needed to better illustrate the proposal.

But I need to allow the user to create or change the templates. This is where fastreport does not work. I don’t want to install or explain the client how to create reports in the designer.

网友答案:

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.

网友答案:

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

网友答案:

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;
网友答案:

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

网友答案:

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:

  • FastReports - in my opinion, the best.
  • QuickReports - used to be bundled with Delphi.
  • Rave Reports - used to be bundled with Delphi.

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: