PDA

View Full Version : problem to read excel file



keyurparekh
24th June 2011, 10: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.

Regards,
Keyur Parekh

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

keyurparekh
24th June 2011, 13: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.

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

keyurparekh
27th June 2011, 13: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