Wednesday 1 August 2007

ReportManager version incompatibility

There's a freeware report generator ReportManager, that I do use a lot. Starting from some version (don't remember which, but 2.6a has it), the generated report files are incompatible with the older versions (again, I don't remember till which, but 2.4e has this problem).

After some investigation, the problem seems to have a fix. Report files are essentially a Delphi forms (a kind of resources for Borland Delphi programs), in plain text. The incompatibility is originated by 2 new properties of report parameters:
  • ErrorMessage
  • Validation
After all, these properties are good and extend the functionality of ReportManager. Besides, RM is free, so you can just download the latest version and be well off. However, if you don't use these new features, and want your report to work with older versions of RM engine, just open your *.rep file in any text editor (notepad will do, but I personally prefer VIM), and delete all lines that look like

ErrorMessage = ''
Validation = ''

in VIM, this could be done with the following commands:

:gl /^ *ErrorMessage *=/ del
:gl /^ *Validation *=/ del

No comments: