View Full Version : problem to read excel file

24th June 2011, 11:38
Dear Friends,

I am currently working on Qt and using this i want to read excel file. But i am not able to do that.

I read so many post in this forum which explain same thing. But i tried all code given in forum but i m still facing problem to open excel file.

Please give me some full working example code to read excel file.

I am constantly getting below message when i m trying to run program. It not shows error but display below msg and program closes it self.

CoCreateInstance failure (Class not registered)
QAxBase::setControl: requested control {00024500-0000-0000-C000-000000000046} could not be instantiated
QAxBase::dynamicCallHelper: Object is not initialized, or initialization failed
QAxBase::dynamicCallHelper: Object is not initialized, or initialization failed

Please reply me as soon as possible. Thanks in advance.

Keyur Parekh

24th June 2011, 12:56
I think possible MS Office not correctly installed in your OS.

24th June 2011, 14:21
But I am using open office. So is it possible to open open office file from QT? And if i m using linux than what could be the solution for that.

Please reply me.

24th June 2011, 14:50
I did not work with Oo from ActiveX. In Linux to use API ОО or directly read files ОО.
Maybe someone add some info else.

27th June 2011, 14:25
Hi thanks for your reply..

But how to use API of Open office. Can i directly use OO API to read excel file from QT?
Please guide me