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
|