The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Automation Server/COM and LabVIEW
 Does COM automation work with Origin 8?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ChemistryGuy

Australia
49 Posts

Posted - 12/01/2022 :  5:51:03 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release: 8

I have developed a VBA program that uses COM automation to import data to Origin, and generate a plot. The program works with my version of Origin, which is 2023. However, another user tried to use this program with Origin 8 and experienced an error.

Specifically, the following error message was displayed:
Run-time error '-2147417851 (80010105)'
Automation error
The server threw an exception.

The line of code that triggered this error was:
LayerCount = wbk.Layers.Count

Based on this, I suspect the issue is that COM automation does not work with Origin 8, and the user needs to upgrade to a more recent version of Origin. However, I just wanted to double check this: Please would you advise me if COM is unavailable for Origin 8, or if you think there may be a different cause for this error?

minimax

348 Posts

Posted - 12/08/2022 :  02:20:36 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Based on our limited knowledge of COM, it is version dependent. (it might be not, but we do not know how to make it independent)

so you will have to build the program for each Origin version. (Origin 8 supports COM)
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000