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
 C#.NET automation server
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

hanskloss

USA
Posts

Posted - 12/02/2008 :  4:04:03 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

hanskloss

USA
Posts

Posted - 12/03/2008 :  11:17:36 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Go to Top of Page

cpyang

USA
1406 Posts

Posted - 12/03/2008 :  2:46:32 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

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