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

Qt Code:
  1. QAxWidget swriter("com.sun.star.ServiceManager");
  2. swriter.setProperty("Hidden", false);
  3. QAxObject *swDesk = swriter.querySubObject("com.sun.star.frame.Desktop");
  4. QList<QVariant> args;
  5. swDesk->dynamicCall("c:/teste.odt","_blank",0,args);
To copy to clipboard, switch view to plain text mode