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
 Origin Forum
 Delphi data transfer!

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
sergius2ch Posted - 06/04/2007 : 1:16:46 PM
Origin Version (Select Help-->About Origin): 7.5 Rro
Operating System: WinXP sp2

Hi,
I need to transfer some data from Delphi2006 to Origin75 (with plotting).
Could you give some working code, please?
I can not find anything good in forum.

Something like that:
{
XValues: array[1..Num} of double;
YValues: array[1..Num} of double;
OriginApp.Connect;
OriginApp.WorkSheet.Add;
for i:= 1 to Num do Origin.WorkSheet[1].Cells[1, i]:= XValues[i];
for i:= 1 to Num do Origin.WorkSheet[1].Cells[2, i]:= YValues[i];
OriginApp.WorkSheet[1].Plot('a1:a1000','b1:b1000');
OriginApp.Visible:= true;
}

With many thanks in advance,
Sergey.
mailto: sergius2ch@yandex.ru
1   L A T E S T    R E P L I E S    (Newest First)
Deanna Posted - 06/04/2007 : 9:43:39 PM
Hello Sergey,

There is a chapter in the programming help of the Origin 7.5 that explains how to call Origin from other applications. Did you see it? The title is Calling Origin from Other Applications (Automation Server Support). The most frequently used methods include PutWorksheet(), Execute(), etc. With them, you can connect to Origin, pass the data and execute any Labtalk Script to do the plotting.

There are also a few samples on automation server support. The samples are in Samples\AutomationServer subfolder under the Origin program folder. Although they are not written in Delphi, they might be helpful to some extent.

Deanna
OriginLab Technical Services

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