Page 1 of 1

TeeSaveToJPegFile(Chart1, PicFilePath...

Posted: Fri Feb 24, 2012 3:20 pm
by 16461468
Delphi Xe2, VCL v2011, Windows 7 (64bit)

while converting one of my applications from Delphi 2010, I get the following...

[DCC Error] SSFormUnit2.pas(4067): E2010 Incompatible types: 'TCustomTeePanel' and 'TChart'

on the line TeeSaveToJPegFile(Chart1, PicFilePath+'Chart1.jpg', Chart1.Width, Chart1.Height);

there seems to be an issue with this Method? as though TChart is not recognizes as TCustomTeePanel anymore?

Re: TeeSaveToJPegFile(Chart1, PicFilePath...

Posted: Fri Feb 24, 2012 6:21 pm
by 16461468
remove all referances to Te* units from any/all uses clauses and let the compiler reload the VCLTee.* versions into your uses clause (or change all the names manually to the newly named versions)

also, the VCL2011 installer did "not" remove all native (bundled) tee* units, files, dcu(s), etc. so I had to remove them manually from the $(BDS)... LIB, BIN and other directories

Re: TeeSaveToJPegFile(Chart1, PicFilePath...

Posted: Tue Feb 28, 2012 4:02 pm
by yeray
Hi,

If I understood well, you solved it. If I misunderstood you, don't hesitate to let us know.
weigel_s wrote: the VCL2011 installer did "not" remove all native (bundled) tee* units, files, dcu(s), etc. so I had to remove them manually from the $(BDS)... LIB, BIN and other directories
Weren't they backed up as always?