fr 2.5x to fr 4.6 problem

Hi !

We have to upgrade one of our software written in BCB5 that have the FR 2.5 to the last version of FR, ie 4.6. i read the pinned topic about the conversion issues and im just not able to convert a report.

First of all, there is not a .hpp for the file "frx2xto30.pas". So i had to add the .pas to the project, compile it and then and the .hpp to the include section. That seems to work.

Second, i had the FR4 composants that are needed from FR2 reports in the same unit, compile the unit and its all good

Then, i opended fr4 designer, File->Open->Choose a report and the only thing i see is "Invalid file format"


So im thinking "will i be able to convert my files ?"

Some1 have an idea of what im doing wrong ?

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 3:29PM
    not a c person but here is how i handled it in delphi.

    you must have a designer component included in your project
    and you do it at run time not from the ide.
    typically set the open and save dir paths of the designer component to
    differnt folders.
    make sure your report component's store in dfm prop is false
    from a button click event.
    frxreport1.designreport;
    when designer opens click open when the report loads click save as.
    Tip if you are using tfrdbdatasets add duplicate tfrxdbdatasets and set them
    to the same datasets/sources before conversion, also if in your fr2.# report
    your data fields had names like
    table1."fieldname" set the username for the appropriate tfrxdbdataset

  • edited 3:29PM
    Ah i havent tried at run-time. Ill check that !

    Another question ? if BCB5 bugs me, can i do the conversion with delphi ? cause about 95% of my reports have their queries inside the report, and im just using the database connection from the application.
  • gordkgordk St.Catherines On. Canada.
    edited 3:29PM
    i would expect a problem depending upon the script language that was used in the report when it was designed.

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.