FR4 from FR3.2.5

edited 11:26AM in FastReport 4.0
I have used Fast Report 3.2.5 in my program. I decide upgrade Fast Report 4. So, I install FR4 and rebuild my program.
When I run, I get an error "Invalid File Format".
I use Delphi 7, FIBPlus and report designs are in a blob field. (not .fr3 file).

How can I solve this problem?

Thank you

Comments

  • Anu de DeusAnu de Deus Hampshire, UK
    edited 11:26AM
    Try loading the blob contents into a stream (Tmemorystream).
    Get that stream and load a tstringlist with it (tstringlist.loadfromstream)
    Save it to a file (.txt, fr3, whatever), tstringlist.savetofile
    Open with notepad and examine it.
    For example try to identify some properties you don't need for the frxreport root element, get rid of them, and try to load the report without these properties.
    Or simply create a fresh new report with a designer of the latest version you have, save it (empty even) into a .fr3.
    That file has all the headers and is in the proper format. Try comparing it to the one saved from the blob (which is in the old version of FR), see what is different, copy and paste from one to the other until it works.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.