Class TXLSXAdapter not found

Hi,

   I Installed the latest version of Flexcel v3 because I needed access to xlsx files. I had an existing intraweb program with and xlsadapter on it, and I replaced it with an xlsxadapter. when I try to access the page that the xlsxadapter is on I get the following error message:



---------------------------

Message from webpage

---------------------------

Class TXLSXAdapter not found

---------------------------

OK   

---------------------------





The weird thing is that I have other pages where I replaced the xlsadapter with xlsxadapter and everything works fine.

What could cause this error, this is with XE2



Hi,

Are you building with runtime packages?
If you are, can it be that it is finding and older bpl which doesn't include XlsxAdapter?
Can you try to build without runtime packages to see if it fixes it?

I don't have many other ideas of what can be going wrong.
I've found a similar issue here:
https://forums.embarcadero.com/message.jspa?messageID=399776

Where it looks like it was fixed by changing the order of uses/includes. I wonder if changing the order makes some difference in your app?

I also wonder what happens if you register the class manually?
initialization
RegisterClass(TXlsxAdapter);

But I am really no expert in intraweb, maybe someone with more experience on it can help further. 

Thanks for the quick reply Adrian.



I'm not building with the runtime packages, and the order doesn't seem to make a difference.



I tried to initialize it, and it got rid of the error message, but when I tried to access the xlsxadapter it gives me an access violation error.



I recreated a new form, and added all the same components and it is working fine now. There must have been something left over in the old form. I will keep checking, if I find the problem I will post it here.



Thanks for your help again.