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
 C#.NET automation server

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
hanskloss Posted - 12/02/2008 : 4:04:03 PM
Origin Ver. and SR (Select Help-->About Origin): OriginPro 8 SR1 (v8.0773)
Operating System: Windows XP

Hi, I am trying C# example SendNumericDataToWks with Visual Studio 2005 and Origin 8 - it works fine except when I try to send data to origin it minimizes and restores origin when it executes origin command:
"doc -m 5;doc -m 6;doc -m 1"

The same command executed from a VB script behaves fine.

Any ideas?

BTW: what is "doc -m 5"?

Piotr
2   L A T E S T    R E P L I E S    (Newest First)
cpyang Posted - 12/03/2008 : 2:46:32 PM
You should probably update to SR4 as many bugs are fixed related to COM and some new useful commands are added, so you should no longer need to use those LabTalk commands like doc -m any more. There is now app.Visible for controlling how the Origin main window is shown.

The following wiki also provide some new COM documnentation:

http://wiki.originlab.com/~originla/wiki/index.php?title=Category:COM_Server


Like this one:

http://wiki.originlab.com/~originla/wiki/index.php?title=OriginCOM:Setting_and_Getting_Data#C.23_to_and_from_a_Column_in_a_Worksheet

hanskloss Posted - 12/03/2008 : 11:17:36 AM
I got a response from the support team:
the change was to replace "doc -m 5;doc -m 6;doc -m 1" with
"doc -m 5;doc -m 1"

I found some answers to doc command here:
http://www.originlab.com/forum/topic.asp?TOPIC_ID=3354


quote:
Originally posted by hanskloss

Origin Ver. and SR (Select Help-->About Origin): OriginPro 8 SR1 (v8.0773)
Operating System: Windows XP

Hi, I am trying C# example SendNumericDataToWks with Visual Studio 2005 and Origin 8 - it works fine except when I try to send data to origin it minimizes and restores origin when it executes origin command:
"doc -m 5;doc -m 6;doc -m 1"

The same command executed from a VB script behaves fine.

Any ideas?

BTW: what is "doc -m 5"?

Piotr


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