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
 All Forums
 Origin Forum for Programming
 Forum for Automation Server/COM and LabVIEW
 Does COM automation work with Origin 8?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
ChemistryGuy Posted - 12/01/2022 : 5:51:03 PM
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?
1   L A T E S T    R E P L I E S    (Newest First)
minimax Posted - 12/08/2022 : 02:20:36 AM
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)

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000