VBA Getobject using variable in Windows 10 registry Swing Project

Asked

Viewed 71 times

1

Hello.

I have a problem with a component here in the company. The application is built in Swing with java 6. We use a framework called Jintegra.

We have a feature where the user clicks on the button to add a text. The Word is opened giving the possibility of the user to put the desired text, after the end it goes in the "add-ons" tab and click on the button that triggers a macro (VBA). The problem is right at the moment, when it arrives at the end:

GetObject("jvm:com.empresa.classe")

In windows 7 worked properly, but now with windows 10 it does not work. Gives error:

"Runtime error ' 2147221020 (80040e4)"

Initially we thought the problem was in the components of Jintegra, but I’ve updated all the libraries of the same, including those generated by the component based on word and excel, but the error remains exactly the same!

I’ve tried several ways and it doesn’t work. I believe the problem is in the way windows stores information. In windows 7 Getobject can find the registry in windows and finds the class, correctly following the flow of the VBA script. Not in windows 10. I know there’s been a lot of change in windows 10 and I believe that’s what’s impacting the program. I may be wrong, but I believe the problem is windows related.

I appreciate anyone who can help. Paul

  • Already tried to use compatibility mode?

  • Good afternoon. I didn’t try. It would be by windows, going in properties, or setting in code?

  • By OS on property.

  • There are no other differences between the two environments, such as the office version or its architecture (x86 or x64)?

  • Leandro. Yes, the old environment was 32, the new 64.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.