PDA

View Full Version : openoffice.org + activeQt



vcp
19th November 2010, 18:29
Hi,

I'm trying to read a file using openoffice.org with activeQt.
After much research, I wrote the code below but it does not work.
Please could someone tell me what's wrong with it?
I know that the code is quite simple, but it was all I got so far.
I know very little about API (com.sun.star ...) of openoffice.

Thanks a lot



QAxWidget swriter("com.sun.star.ServiceManager");
swriter.setProperty("Hidden", false);
QAxObject *swDesk = swriter.querySubObject("com.sun.star.frame.Desktop");
QList<QVariant> args;
swDesk->dynamicCall("c:/teste.odt","_blank",0,args);