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
 Prospective Buyer
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

daly_denis

Ireland
1 Posts

Posted - 06/20/2003 :  05:02:42 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I am a prospective buyer of Origin 7.

Our needs are to automate the graphing of excel work-books containg anything from one to 20 work-sheets. Currently we use our own Visual_Basic modules but find we still need to graph manually, which takes a long time. Can someone advise that Origin 7 is the best way to solve these problems?

Regards,

Denis

greg

USA
1379 Posts

Posted - 06/24/2003 :  3:09:02 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
If you open your Excel Workbooks as Origin Worksheets then you should be able to write a script that does it all.

Here's a simple script that prompts for a workbook file, then proceeds to plot all columns of all sheets in the workbook.

// Warning! This script closes the current Origin document
doc -s;
doc -n;
win -c Data1;
getfile *.xls;
system.excel.openasexcel=0;
system.excel.openasprompt=0;
doc -A %B%A;
doc -e W {
wo -s 0 0 0 0;
wo -p 200 line;
}

If you open your workbooks as Excel workbooks and if you can put some constraints to your request - such as knowing what sheets are called in each workbook, how many sheets per workbook and your column data is typically XYY.. then the task could also be done, but in this case, a better approach would be to use Origin Pro and use the COM interface to Excel. COM gives you better communication between Origin and Excel so your code can be much more sophisticated.


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