Groups > Borland > Borland Delphi migration > Re: QuickRep 4.0 Delphi 7 to Delphi 2007




QuickRep 4.0 Delphi 7 to Delphi 2007

QuickRep 4.0 Delphi 7 to Delphi 2007
Tue, 29 Jan 2008 08:09:03 -030
We have a Form created on Delphi 7. When we open it in Delphi 2007 we get
the message:

"Erro reading Form1.Frame.Color: Property Frame.Color does not exist.
Ignore
the error and continue ?"

We "ignore all", modify something in the Form, save it and the error
continues.

Can someone help us ?

Petrucio Soares

Post Reply
Re: QuickRep 4.0 Delphi 7 to Delphi 2007
Wed, 27 Feb 2008 18:52:59 -000
Petrucio Soares wrote:
> We have a Form created on Delphi 7. When we open it in Delphi 2007 we
> get the message:
>
> "Erro reading Form1.Frame.Color: Property Frame.Color does not exist.
> Ignore the error and continue ?"
>
> We "ignore all", modify something in the Form, save it and the
error
> continues.
>
> Can someone help us ?
>

I get the same error with an example program from here:

http://delphi.about.com/od/humorandfun/a/fdac_sudoku.htm

When I try to open the QPGridSolution form in D2007.

Here's my guess. In D7 a TQuickRep can be added to a project in two ways.
a) Dropped on a form as a component.
b) A TQuickReport module can be added to the project using File/New

The two methods seem to produce dfm files with different structures and, on 
my D2007 installation, the format generated in method b) gives the error. 
Furthermore, there is no option to use method b) for QuickReports in D2007.

The fix:
1) Open the .dfm file as text...copy the contents to a text editor
2) Open it as a form, choose ignore all and the form will load with the 
Quick report component deleted.
3) Drop a Quick report component onto it from the component pallete.
4) Save the form
5) Open the saved dfm form as text
6) Find the Quick report component in the text. Copy required text from the 
text editor used in step 1)

The form should now load OK.

T



Post Reply
about | contact