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
 Origin Plot Embedded in Windows Form?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

newuser_ca

70 Posts

Posted - 07/12/2012 :  11:43:37 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OrignPro 8.6 in Win 7.

I created a GUI (written in C#) to run an Origin function to plot and then display plots generated from Origin. Now I export Origin plot to a .jpg file and then display in my GUI window. Here is an example:


But as a picture, the user can't zoom in, zoom out or get the (x,y) value in the picture. Is there a way to embedded a window in the GUI window when the user double click the picture, all the Origin features will be activated? The Origin 8.6 allows the user to zoom in/out, scale in, data reader, screen reader and etc.

Is this something called OLE?

Thanks.

newuser_ca

70 Posts

Posted - 07/16/2012 :  1:36:40 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
anybody has an idea?
Go to Top of Page

easwar

USA
1964 Posts

Posted - 07/17/2012 :  10:10:00 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

If you go to Tools->Options dialog and then the Graph tab, you will see a check box "Enable OLE In-place Activation". If you check this box, then when you copy-paste a graph from Origin to say Word or PowerPoint, you can double click on elements in the graph and dialogs such as Axes dialog, Plot Details etc will open for making changes. But the functionality is limited, you will not have access to other tools such as zoom etc. This of course requires that Origin is installed on the client machine.

For your particular application needs, if for example all you need is ability to zoom into the x axis, you could pop up some dialog for user to enter the start and end values, and then send that back to the server to fetch an updated image?

Easwar
OriginLab
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