Home > Error Calling > Error Calling Idispatch Member Exception Thrown By Server

Error Calling Idispatch Member Exception Thrown By Server

JohnCS 13.8.2014, 10:14 Цитата(Гость @ 13.8.2014, 9:56) Добрый день.У меня Excel закрывается вместе с программой. Как сделать, чтобы при закрытии программы Excel оставался открытым?Разобрался.Такое происходит только если открыть пустой Excel (без Did you found activate method in application object? so, of course, i cannot connect. So , at last, I've gone to the qaxbase.h source code and found the exception signal defined within an #ifdef qdoc preprocessor statement ... http://oncarecrm.com/error-calling/error-calling-idispatch-member-open-exception-thrown-by-server.html

I know that the good guys uses dumpcpptool. Help : xlmain11.chm Connect to the exception(int,QString,QString,QString) signal to catch this exception To copy to clipboard, switch view to plain text mode Last edited by [email protected]; 12th December 2013 at 14:17. If you are already registered, please login here. 1 2 3 Skip user information mchara Trainee Posts: 99 Location: Poland Occupation: developer 21 Friday, December 14th 2007, 7:57am what is EXCEL97, Reply With Quote + Reply to Thread Quick Navigation Newbie Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums Qt Newbie Qt Programming Qwt Qt Quick

Help : xlmain11.chm Connect to the exception(int,QString,QString,QString) signal to catch this exception QAxBase: Error calling IDispatch member SaveAs: Exception thrown by server Code : 1004 Source : Microsoft Excel Description: Fichier Like I say, I've tried lots of variations for the argument, including casting the value as a double. I have no idea what seems to be the problem.

try to call activate() - all office automation objects shall open host application if QAxObject has connected to activeX server, it's simplest way to check if you're really connected to application(not I am using full path with extension. Why it didn't work is because QFileDialog::getOpenFileName returns the first one ny default. By Gokulnathvc in forum Newbie Replies: 3 Last Post: 29th August 2012, 11:26 use try cacth exception By jindoniit in forum Newbie Replies: 14 Last Post: 31st August 2011, 07:47 Unhandled

m_range and m_worksheet are both QAxObject pointers. I've also tried variations on how to pass the parameter: using QVariant(0), dynamicCall("SetControllerVisible(\"0\")") etc. This post has been edited 1 times, last edit by "Aki-Matti" (Feb 5th 2008, 9:49am) Go to the top of the page Skip user information mchara Trainee Posts: 99 Location: Poland http://www.qtforum.org/article/22557/2/activeqt-excel.html You may have to register before you can post: click the register link above to proceed.

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. This email and any files attached are confidential and intended solely for the use of the individual or entity to which they are addressed. V?rifiez que le dossier sp?cifi? Are u using full path with extension?

if neither helped, do 1. http:[email protected][email protected]er.html I have fixed that for 3.3. for(int j = 1; j < cols+1; j++) { ......... Home Forum Today's Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links View Site Leaders Docs Contest FAQ Blogs Links What's New?

clinisbut last edited by Here is my example code (very simple) @activex = new QAxObject("832C30D8-7062-44AC-878E-0C7C64B245A8"); activex->setProperty("Settings", QString("9600,n,8,1") );@ Throws this (Description in spanish): @QAxBase: Error calling IDispatch member Settings: Exception thrown his comment is here Are u using VisualStudio? I found out that I'd indeed been using the wrong UUid, what I was using was the Excel Worksheet UUid all the time. Do you have such infos in your output tab in vs while running app?

Reply With Quote 11th December 2013,23:17 #4 ChrisW67 View Profile View Forum Posts View Blog Entries View Articles Guru Join Date Mar 2009 Location Brisbane, Australia Posts 7,380 Thanks 13 Thanked Go to the top of the page Skip user information mchara Trainee Posts: 99 Location: Poland Occupation: developer 23 Tuesday, December 18th 2007, 8:44am Try this one - the best method(as It does work well with other versions of Excel, I know that. this contact form Are u using VisualStudio?

If interface is the same and nothing works, i have no other idea. try to open the same file in a normal way (in excel via openDialog) to make sure that file isn't corrupted (or in newer format etc.) 2. So replacing QAxObject by QAxWidget in the code above makes everything work.

Go to the top of the page Skip user information Aki-Matti Beginner Posts: 17 39 Tuesday, February 5th 2008, 9:48am I have a new problem with Excel automation.

It doesn't seem to have a Workbook object so I have to see how opening a file works with this one, it seems to be a bit different than in the V?rifiez que le dossier dans lequel se trouve le fichier n'est pas en lecture seule. ? I must add that using another control like MSComm32 I have no problems (related with Qt, MSComm32 has other more serious problems) If it helps, debugging into code I found that Olga 5.2.2014, 15:11 Добрый день!Подскажите пожалуйста в чём может быть проблема:QAxObject* excel = new QAxObject( "Excel.Application", this );
excel->dynamicCall( "SetVisible(bool)", TRUE );
QAxObject *workbooks = excel->querySubObject( "Workbooks" );
QAxObject *workbook =

Go to the top of the page Skip user information mchara Trainee Posts: 99 Location: Poland Occupation: developer 33 Monday, January 7th 2008, 10:36am Identical code ( Source code 1 2 If this is your first visit here, please read the Help. if(str.isEmpty()) list[j].append("Empty"); else list[j].append(str);Имхо криминал тут. Понятно почему? (нужно быть внимательнее с индексами) AlexeyDonald 22.2.2011, 1:56 Народ подскажите, цель поменять имя листа в документе, не пойму в чем ошибка. Вот проблема, navigate here try it again with Excel.Application string instead of UUID, i'm quite sure it works on every version.

Can you post a complete, small example that demonstrates the problem? and 2. The problem is that everytime I try to read it it returns an empty string. NoScript).

This email and any files attached are confidential and intended solely for the use of the individual or entity to which they are addressed. Help please? Thank You. -- To unsubscribe - send a mail to [emailprotected] with "unsubscribe" in the subject or the body. p.s.s.

mc Go to the top of the page Skip user information Aki-Matti Beginner Posts: 17 32 Monday, January 7th 2008, 9:41am Ok, I'm not getting anywhere in this.