Data: Import from File: Origin Project(OPJ, ORG, OGW)...
Import column(s) from Origin project file.
1. impOPJ fname:=D:\ImpOPJ.opj info.wkspage:=Book1 info.wks:=Sheet1 orng:=[Book1]Sheet1; //Import the first column in the sheet1 of book1
2. impOPJ fname:=D:\Book1.ogw info.wkspage:=Book2 info.wks:=Sheet1 info.cols:={0, 1} orng:=[Book1]Sheet1; //Import the column1 and column2 in the sheet1 of book2
3. #impOPJ fname:=D:\Alkanes.opj info.wkspage:=Book1 info.wks:=Sheet2 options.include.units:=0 options.include.comments:=0 orng:=[Book1]Sheet1; //Import the first column in the sheet2 of book1 excluding the Units and the Comments
Please refer to the page for additional option switches when accessing the x-function from script
Input
string
TreeNode
Range
See the syntax here.
int
This function will import the column(s) in Origin Project file by setting the options in the dialog. It can be accessed from menu or command window.
impopj -d
This example will show you how to import the specified columns in a Origin Project file.