Error Calling Idispatch Member Exception Thrown By Server
your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Welcome to Qt Centre. Qt Centre is a community site devoted to programming in C++ using the Qt framework. Over 90 percent of questions asked here gets answered. If you are looking for information about Qt related issue — register and post your question. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. + Reply to Thread Results 1 to 8 of 8 Thread: QAxBase exception signal Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 20th November 2013,16:50 #1 thomas@itest View Profile View Forum Posts View Blog Entries View Articles Novice Join Date Oct 2011 Posts 27 Thanked 3 Times in 3 Posts Qt products Platforms QAxBase exception signal Hi all, I'm using QAxBase objects (ms excel automation) and would like to connect the QAxBase::exception(int,QString,QString,QString) signal to manage errors but i can't ... So, i've opened "qaxbase.h" source code and found : Qt Code: Switch view #ifdef qdocQ_SIGNALS: void signal(const QString&,int,void*); void propertyChanged(const QString&); void exception(int,const QString&,const QString&,const QString&);#endif #ifdef qdoc Q_SIGNALS: void signal(const QString&,int,void*); void propertyChanged(const QString&); void exception(int,const QString&,const QString&,const QString&); #endif To copy to clipboard, switch view to plain text mode of course "qdoc" is not defined ... so, what am i missing ? I have hardly googled, read the docs, searched on this forum but i found nothing ... (I think there's no link between the "#define qdoc" in the code and the "QDoc" html doc generator tool, so googling on qdoc is'nt an easy task but maybe i'm wrong) I'm using qt4 (same results with 4.7.4
QAxBase: Error calling IDispatch member SaveAs: Exception thrown by server Code : 1004 标签: exceptionserverexcelmicrosoft工作signal 2012-09-04 16:29 4980人阅读 评论(4) 收藏 举报 本文章已收录于: 分类: C/C++(7) 作者同类文章X 版权声明:本文为博主原创文章,未经博主允许不得转载。 Qt操作Excel还真是不简单啊。网上看到一段代码可以复制excel,拿来一试。 新建Qt gui应用程序 桌面版。main.cpp代码为:#include
21 Dec 2005 08:37:47 -0000 Using 3.3.5. To be honest, I don't really understand "ActiveQt in version 3.2 doesn't support float (or rather it supports them as doubles)". Like I say, I've tried lots of variations http://www.archivum.info/qt-interest@trolltech.com/2005-12/00404/RE-QuickTime-ActiveX--Error-calling-IDispatch-member.html for the argument, including casting the value as a double. I guess what I'm really asking is -- what argument can I use to make this work? Sam -----Original Message----- From: Alex Malyushytsky [mailto:[emailprotected]] Sent: Tuesday 20 December 2005 23:35 To: [emailprotected] Subject: RE: QuickTime ActiveX - Error calling IDispatch member There is an answer in thread you pointed on. Here is it: >>ActiveQt in error calling version 3.2 doesn't support float (or rather it supports them as doubles). This works for in parameters, but not for out parameters. I have fixed that for 3.3. Volker I am not sure if your problem is the same though. But if you have 3.2 version it is definitely worth to upgrade to at least 3.3 Alex -----Original Message----- From: Dutton, Sam [mailto:[emailprotected]] Sent: Tuesday, error calling idispatch December 20, 2005 9:53 AM To: [emailprotected] Subject: QuickTime ActiveX - Error calling IDispatch member I'm getting a Qt warning when attempting to use a QuickTime ActiveX control: QAxBase: Error calling IDispatch member SetControllerVisible: Exception thrown by server. Code is as follows: axw = new QAxWidget(this); axw->setControl("{02BF25D5-8C17-4B23-BC80-D3488ABDDC6B}"); axw->dynamicCall("SetControllerVisible(int)", 0); I found discussion of this at http://lists.trolltech.com/qt-interest/2003-12/msg00620.html but no answer to the problem. I've also tried variations on how to pass the parameter: using QVariant(0), dynamicCall("SetControllerVisible(\"0\")") etc. Any ideas? Sam Dutton Please Note: Any views or opinions are solely those of the author and do not necessarily represent those of Independent Television News Limited unless specifically stated. This email and any files attached are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error, please notify [emailprotected] Please note that to ensure regulatory compliance and for the protection of our clients and business, we may monitor and read messages sent to and from our systems. Thank You. -- To unsubscribe - send a mail to [emailprotected] with "unsubscribe" in the subject or the body. List archive and information: http://lists.trolltech.com/qt-int