Document generator for DELPHI [closed]
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 9 years ago.
Improve this questionI 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.
精彩评论