May 142004
 

Yesterday I installed the trial version of WPTools for Delphi 6. Dudez, this thing rocks! By dropping 4 (yes, four) of their components on a frame, you more or less have a full-blown Wordprocessor (not only a text-editor). Fonts, alignments, rulers, images, tables, whatever, it’s there.

The native format of the edit-component is RTF, but by including WPWordConv in the uses-clause, the open-file-dialog lists all the file-formats that you have installed on your PC. So you cannot build a Word replacement if you don’t have Word installed (since it needs the Word DLL’s to convert to RTF).

Apart from this tiny drawback, this thing rocks! Oh, I already mentioned that.

I will be using this component in a tool I’m writing for a client that uses an application that generates RTF-reports/documents based on templates. But TRichView that I used, can’t handle the header and footer properly (the header contains a table and an image, which I think is not so special) and it does something to the gridlines of a table. In the application, they can view the generated RTF-file, but they requested that they could edit it as well, so they wouldn’t have to switch to the full-blown application everytime. Because of the quirks of TRichView, I created a button to start MS Word to edit the document. But if I give them the new version with the WPTools components, they will never have to use Word again. Great!

 Posted by at 09:12