Hello,
I am developing a component with TFlexCelReport and TXLSAdapter in the private section of the class. The following is the code:
TCustomFlexcelReport = class(TComponent)
private
FFlexcelReport : TFlexCelReport;
FFlexcelAdapter : TXLSAdapter;
{ Private declarations }
When I try to register the component by building the relevant .bpl I have the following error message:
[DCC Fatal Error] FlexCelXE2.dpk(1): E2225 Never-build package 'FlexCelXE2' must be recompiled
I opened the file FlexCelXE2.dpk and built it but this doesn't solve the issue.
Where am I doing wrong ?
Many thanks
Pio Pio
Forgot to mention, I have Delphi XE2
Hi,
Hi Adrian,
I did the scan of all files FlexCelXE2.* but I didn't find any duplicate. I renamed all files
FlexCelXE2.* except FlexCelXE2.dpk but I still have the same error message.
What else can I try ?
Thanks
Pio Pio
Did you scan for the dcus and pas? You should have only one "UExcelAdapter.pas" and one "UExcelAdapter.dcu" Furthermore only the dcu should be in the search path, not the .pas (if .pas is in the search path, delphi might try to recompile).
Basically there were two issues here:
1) The library path had one path that shouldn't had been there
2) There were several copies of the file UExcelAdapter.dcu on the hard drive.
I publish here Adian's detailed solution for everybody's benefit:
1)Uninstall FlexCel 3.9
2)Remove the line C:\Users\admin\Documents\tmssoftware\FlexCelVCL\Source from your library path
3)Reinstall FlexCel 3
4)Look at the library path: There shouldn’t be any FlexCel sources there.
5)Clean the projects where you had UExcelAdapter.dcu. You need to remove not only UExcelAdapter.dcu, but all the other FlexCel dcus. You can just select all dcus in the folder and delete them, Delphi will recreate them as needed.
Now the component is compiled and added to the tool palette correctly.