Java Mailing List Archive

http://www.gg3721.com/

Home » user.groovy »

[groovy-user] FW: Scriptom (groovy) leaves Excel process running - am I doing something wrong?

Stoddard, Alexander

2010-03-19

Replies: Find Java Web Hosting

Author LoginPost Reply

Using scriptom with Groovy 1.7.0 I am having trouble with an Excel process continuing to run.

I have opened a question at stackoverflow about the issue:

http://stackoverflow.com/questions/2462798/scriptom-groovy-leaves-excel-process-running-am-i-doing-something-wrong

Here is a copy of the question:
I am using the Scriptom extension to Groovy 1.7.0 to automate some processing using Excel 2007 under Windows XP.
This always seems to leave an Excel process running despite my calling quit on the excel activeX object. (There is a passing reference to this phenomenon in the Scriptom example documentation too.)
Code looks like:

import org.codehaus.groovy.scriptom.ActiveXObject;
def xls = new ActiveXObject("Excel.Application")
xls.Visible = true

// do xls stuff

xls.Quit()

The visible excel window does disappear but an EXCEL process is left in the task manager (and more processes pile up with each run of the script).
There are no error message or exceptions.
Can anyone explain why the Excel process is left behind and is there any way to prevent it from happening?

Many thanks,
Alex Stoddard


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


©2008 gg3721.com - Jax Systems, LLC, U.S.A.