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

ole_type #20

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

ole_type #20

Thomas008 opened this issue May 26, 2019 · 1 comment

Comments

@Thomas008
Copy link

e1 = WIN32OLE.new('Excel.Application')
=> #WIN32OLE:0x1918c79
e1.ole_type
�[1mTraceback�[m (most recent call last):
7: from C:/jruby-9.2.6.0/bin/jirb:13:in <main>' 6: from org/jruby/RubyKernel.java:1179:in catch'
5: from org/jruby/RubyKernel.java:1179:in catch' 4: from org/jruby/RubyKernel.java:1411:in loop'
3: from org/jruby/RubyKernel.java:1047:in eval' 2: from (irb):2:in evaluate'
1: from C:/jruby-9.2.6.0/lib/ruby/gems/shared/gems/jruby-win32ole-0.8.5/lib/win32ole/win32ole_ruby.rb:47:in ole_type' NoMethodError (undefined method documentation' for #Java::OrgRacobCom::TypeLib:0x1a9e7c8

It seems that in
def ole_type
typelib = type_info.containing_type_lib
docs = typelib.documentation(typelib.index)
WIN32OLE_TYPE.new typelib, type_info, docs
end

the documentation fails.

@Thomas008
Copy link
Author

I have published this issue in the jruby github already, since I did not know where the best place might be
(issue 5756).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant