Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 17095, Make the free version of FastReport (v2.2.1) compile in Delphi 6

by Dave Nottage Email: Anonymous


Details of changes required to make FastReport v2.2.1 compile in Delphi 6
Download Details
FTP  download also available 0 bytes
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 6.0  to 6.0 14 downloads
Copyright: No significant restrictions


Size: 0 bytes
Updated on Thu, 22 Nov 2001 17:46:01 GMT
Originally uploaded on Wed, 21 Nov 2001 19:49:24 GMT
Description
You can obtain FastReport v2.2.1 at:

http://www.fast-report.com/files/fr221.zip

Changes required to make FastReport 2.2.1 work in Delphi 6:

. Rename the package file to: FR221_.DPK
(the reason for having an underscore as the last character will become clear in a moment)

. Change the package lib suffix to 60

To do this:

1. Open the package file in Delphi, and click Options in the package editor window
2. Select the "Description" tab.
3. Change Lib Suffix to 60. This is what Delphi will add to the name of the BPL file, ie it will become FR221_60.BPL.

. Add designide to the requires clause of the package

To do this:

1. Select the "Requires" node in the package editor, and click the "Add" button.
2. Click "Browse" and navigate to Delphi6\Lib and select the designide.dcp file.

. Change FR_Ev_ed.PAS

*** Note: to do these changes, you may need to open the file in notepad, rather than
in Delphi, as Delphi will attempt to load the form, which has components on it
that are not yet installed ***

Change the uses clause in interface section to:

uses
{$IFDEF VER140} DesignIntf, ToolsAPI, {$ELSE} DsgnIntf, {$ENDIF}
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, FR_Class, ExtCtrls, DB, TypInfo, Buttons,
FR_Ctrls, FR_Utils;

Just before the implementation section, change the declaration of ShowEvEditor to the following:

{$IFDEF Delphi4}
procedure ShowEvEditor(Component:TfrReport; Designr:IFormDesigner);
{$ENDIF}
{$IFDEF VER140}
procedure ShowEvEditor(Component:TfrReport; Designr:IDesigner);
{$ENDIF}

..and inside the implementation section, change the declaration:

{$IFDEF Delphi4}
procedure ShowEvEditor(Component:TfrReport; Designr:IFormDesigner);
{$ENDIF}
{$IFDEF VER140}
procedure ShowEvEditor(Component:TfrReport; Designr:IDesigner);
{$ENDIF}
begin
// etc..

. Change the uses clause in the interface section of FR_FMemo.PAS to:

uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
FR_Class, StdCtrls, ExtCtrls, ClipBrd {$IFDEF D4UP}, ImgList {$ENDIF},
FR_Utils;


. Change uses clause in interface section of FR_reg unit, to:

uses
{$IFDEF VER140} DesignIntf, DesignEditors, {$ELSE} DsgnIntf, {$ENDIF}
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
DB, Dialogs, FR_Class, FR_Ev_ed, FR_Newrp, FR_DSet, FR_DBSet,
FR_OLE, FR_Rich, FR_FMemo, FR_Desgn, FR_Dock, FR_Ctrls, FR_Utils;


. Change uses clause in *implementation* section of FR_class unit, to:

uses
{$IFDEF VER140} Variants, {$ENDIF}
FR_Fmted, FR_View, FR_Prntr, FR_Progr, FR_EText;

*** Note: this uses clause is in the IMPLEMENTATION section of the unit ***

That completes the changes. You should now be able to compile and install the package. Remember to follow the instructions regarding the language file, as laid out in the instructions that come with FastReport.

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03