QAxWidget("Word.Application") does not open Word inside the widget
enufsenuf last edited by
I try to have MS Word visible inside a QAxWidget (with all menu bars, pull-downs etc), but for some reason,
it always opens externally.
AxApplication = new QAxWidget(QString::fromUtf8("Word.Application"),0);
AxApplication->dynamicCall("Visible", true );
If fact, after the dynamicCall, it opens Word as a separate application.
If I call QAxWidget with a word document directly, it works (but then, I don't see the menu bars of Word).
AxApplication = new QAxWidget(QString::fromUtf8("c:\temp\xxx.doc"),0);
I checked many different versions I found in various topics, but I never
succeeded to open word inside the Widget. All examples I found on the Qt network
or help do not deal with Excel or Word (inside a Widget). I can open most
other applications inside.
Does anyone have a clue?
Thanks in advance
Eddy last edited by
maybe this "thread":http://developer.qt.nokia.com/forums/viewthread/1871 can help you further?
kunashir last edited by
For excel I used next code:
@QAxObject *excel = new QAxObject ( "Excel.Application");
excel->dynamicCall( "SetVisible(bool)", false );@
Yes, I had other class, but SetVisible(bool) - it is funcition of VBA - if I not mistaken.
jiapei100 last edited by
I'd really love to follow this question...
Did you find any solution already?
How about PowerPoint?
Thank you very much...
DanielSeges last edited by
solution is pretty easy :-)
you have to setControl after dialog->show();
QDialog * dialog = new QDialog(this);
QVBoxLayout *l = new QVBoxLayout;
QAxWidget* wordDocument = new QAxWidget ("Word.Document", dialog);