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
 Origin Forum
 Delphi data transfer!
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

sergius2ch

Russia
Posts

Posted - 06/04/2007 :  1:16:46 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Deanna

China
Posts

Posted - 06/04/2007 :  9:43:39 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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