XL app disconnection problem
XL app disconnection problem
XL app disconnection problem
XL app disconnection problem
XL app disconnection problem
XL app disconnection problem XL app disconnection problem XL app disconnection problem XL app disconnection problem XL app disconnection problem XL app disconnection problem XL app disconnection problem XL app disconnection problem
XL app disconnection problem XL app disconnection problem
XL app disconnection problem
Go Back  Xtreme Visual Basic Talk > > > XL app disconnection problem


Reply
 
Thread Tools Display Modes
  #1  
Old 08-04-2011, 01:07 AM
ivaluev ivaluev is offline
Newcomer
 
Join Date: Aug 2011
Posts: 2
Default XL app disconnection problem


Hi all

I've problem disconnecting from an Xl app.
(I'm on vs2010 vb.net and excel 2007)

The task is to start excel and select a shape in it and let a user work with the shape.

There is no problem starting and selecting the shape (all according to the Automating Office Programs with VB.NET article - thanks to the Mike Rosenblum))

The problem is how to disconnect from Excel and let a user close excel manually whenever one wants?? -

If i do a cleanup just for vars - Excel quits (Interestingly enough - it quits even if simply set oExcel = Nothing + cgcollect)
If i don't do anything the process still hangs after a user closes the xl app. (which is understood as my prog still holds a ref an xl instance)

so the problem in short is - how to start Excel, get a ref to it and then disconnect from it (leaving Excel running and having no reference set for it)?

I would appreciate any ideas

Thanks.
Reply With Quote
  #2  
Old 08-04-2011, 01:40 AM
ivaluev ivaluev is offline
Newcomer
 
Join Date: Aug 2011
Posts: 2
Default

Sorry - the problem is solved.
All of a sudden everything started to work.. must've been some glitch))

ps to moderator - pls delete this message as I haven't found any way to do so myself))
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
XL app disconnection problem
XL app disconnection problem
XL app disconnection problem XL app disconnection problem
XL app disconnection problem
XL app disconnection problem
XL app disconnection problem XL app disconnection problem XL app disconnection problem XL app disconnection problem XL app disconnection problem XL app disconnection problem XL app disconnection problem
XL app disconnection problem
XL app disconnection problem
 
XL app disconnection problem
XL app disconnection problem
 
-->