Help - Search - Members - Calendar
Full Version: Compatibility FR3 -> FR4
Fast Reports forum > Fast Reports Products > FastReport 4.0
AlexTZ
Compatibility issues between FastReport 3 and FastReport 4:

- v4 uses the same file/package names as v3. You have to uninstall v3 before installing v4.

- v4 uses the same file format, .fr3 and can open v3 files without any problems.
Most of new report files also can be opened by v3, but not all.

- v4 can read v3 .fp3 files.

- New kind of page, "Data" page is introduced in v4. This page contains all
internal datasets of your report. When opening old v3 files, v4 automatically
adds the "Data" page and moves all datasets on it.

- Since all v4 reports contain a "Data" page, you should check your Delphi
code where you access a report page by index. The "Data" page is always the
first one. So code like Page := frxReport1.Pages[0] will return a data page.
You should correct that code (either use [1] or access a page by its name).

- Check your reports that contain the Cross-tab object!
a) In v4, this object draws cross-tab elements in design-time
and is bigger than in v3. So you have to correct bands that contain
such object.
b ) New behavior introduced in v4 - table can have corner, title, cell headers.
All these properties are on by default. You may turn off corner and title
(ShowCorner, ShowTitle properties) if not needed, and fill in the cell
headers elements.
c) In v4, table has several cell elements. Each cell element has its own
font/color/frame/... settings. In v3 you were able to setup only one cell
element. You should set the fonts and colors for each new element, if needed.

- frxHiButtons unit is no longer used - remove it from your "uses" list
Hoa
Hi There,

The following C++Script within the frxReport::Code tag was working fine in FastReport version 3 (with Borland C++Builder V6) .
=============================================
[ *** Issue # 1 *** C++ Code ***]

void TPrepareFastReportProcess::ExecuteProcess(void)
{
if ( m_FastReport ) {
m_FastReport->PrepareReport(); //<<<< exception poccur here [FR4 version]
}
}
exception with stack dump ( C++Builder 2009)
.....
ntdll.RtlConvertUlongToLargeInteger + 0x46
rtl120.@System@@HandleAnyException$11rv + 0xd8
ntdll.KlUserExceptionDispatcher + 0xe
rtl120.@Classes@TComponent@ValidateRename$qqrq18Class@TComponentx20System@UnicodeString2 + 0x5b
rtl120.@Classes@TComponent@SetName$qqrx20System@UnicodeString2 + 0x5d
frx12.@FrxClassTFrxReport@CheckDataPage$11rv + 0xa1
...
rtl120@Classes@TList@Notify$qqrpv25Classes@TListNotification
__currMul

[ *** Issue # 2 *** FastScript *** ]
....
void Total_LOnBeforePrint(TfrxComponent Sender)
{
if (SUM(<frxUserDataSetAuditTrail."RTotalAmount">,MasterData2) < 0)
{
Total_L.DisplayFormat.FormatStr = "%2.2fCR";
}
else
{
Total_L.DisplayFormat.FormatStr = "%2.2f";
}
}....


However under FastReport 4.x. (with C++Builder 2009.), open with C++Builder 2009 + FastReport Designer 4, compile, and rebuild, run the program I got a error:

Projects XXX.exe raised exception class Exception with message 'Indefined identifier: 'MasterData2".

The stack shown:

fs12.@Fs_iilparser@TfsILParser@FindVar$qqrq25Fs_iinterpreter@TfsScriptx20System@UnicodeString + 0x8e
fs12.@Fs_iilparser@TfsILParser@DoExpression$qqrq17Fs_xml@TfsXMLItemp25Fs_iinterpreter@TFsScript + 0x5b
fs12.@Fs_iilparser@TfsILParser@DoExpression$qqrq17Fs_xml@TfsXMLItemp25Fs_iinterpreter@TFsScript + 0x5b
fs12.@Fs_iilparser@TfsILParser@DoIf$qqrq17Fs_xml@TfsXMLItemp25Fs_iinterpreter@TFsScriptp28Fs_iinterpreter@TfsSt
atement + 0x6f
fs12.@Fs_iilparser@TfsILParser@DoStmt$qqrq17Fs_xml@TfsXMLItemp25Fs_iinterpreter@TFsScriptp28Fs_iinterpreter@TfsSt
atement + 0x8b
...
...
fs12.@Fs_iinterpreter@TfsILParser@ParserILScript$qqrv + 0x57
fs12.@Fs_iinterpreter@TfsScript@Compile$qqrv + 0x83
frx12.@Frxclass@TfrxReport@PrepareReport$qqro + 0xf1
TPrepareFastReportProcess::ExecuteProcess( ...) <-- my won code

[* Issue 2 *]
MaryElliott
very good information
brother printer repair
Programmer
there is another change.

QUOTE(Draeden @ Jul 15 2011, 07:21 AM) *
The TXT export is supported no more, use SimpleText instead. The ExportEMF property was replaced with PictureType.


on my post:
TfrxTXTExport ont found
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.