上传者: lonsune
|
上传时间: 2021-05-13 09:10:54
|
文件大小: 2.08MB
|
文件类型: EXE
There is an excellent converter (fr3tofrx.exe) that will convert the file to the newer .frx format.
It does not do eveything. You will need to redo all your scripting (.net now instead of vb or c++). Also, the way that data is handled is quite different. You need to create data sources differently, but as long as you name them the same as your old datasources, you don't need to change any of your text objects.
I had a report that had several hundred text objects and it converted quite easily. I really did not want to redo it from scratch! There was little scripting on it and a lot of what was there can now be handled with properties of the textobject (and highlighting), things like that.
=========================
To convert old .fr3 files to a new .frx format, do this:
- download the latest version of FastReport 4 (you can even use the trial version)
- add the "frxSaveFRX" unit into your uses list
- run report designer, go "File|Save as...", choose the file type - "FastReport.Net file".
This converter does not perform 100% conversion; you need to change the .frx file. The following items are not converted:
- script (you need to convert pascal code to c# code)
- expressions (you need to convert pascal functions like Copy, Pos, ... to C# functions)
- data fields (add datasources, replace with [ ], remove " " around field name)
- totals (you have to replace aggregate functions like Sum, Min, Max with totals - you need to create the total in the "Data" window)
- charts and vertical bands are not converted
- cross-tab is not converted