Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect to an already running Excel instance in win32ole #5757

Open
Thomas008 opened this issue May 30, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@Thomas008
Copy link

commented May 30, 2019

Doing
e1 = WIN32OLE.new('Excel.Application)
e2 = WIN32OLE.connect('Excel.Application')
e1.Hwnd == e2.Hwnd
expected:
=> true

actual:
=> false

Using WIN32OLE.connect, one would expect that this command connects to an already running Excel instance (and perhaps throws an error, if there is no running Excel instance)
However WIN32OLE.connect seems always to create a new Excel instance.

(environment: jruby 9.2.6.0, Windows 10)

@headius headius added the windows label Jun 10, 2019

@headius

This comment has been minimized.

Copy link
Member

commented Jun 10, 2019

You might try an earlier version of JRuby. It's possible we regressed over the years.

I believe @enebo is planning to look into these win32ole issues soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.