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 for Programming
 LabTalk Forum
 impOPJ function

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
Francesco84 Posted - 08/04/2016 : 10:59:47 AM
Hello to all,
this is my first message on this forum.

I use OriginPro 216 and I have a project with 2 workbook, called Book1 and Book2, both with a single worksheet.

I want to import into a new project some columns of Book1.

This is the script I use:
impOPJ fname: = C:\Users\francesco\Desktop\file.opj info.wkspage:=Book1 info.cols:={0,1} options.FirstMode:=1 orng:=[Book1]Sheet1!(1 ,2);

The problem is that the columns imported are from Book2, and not from Book1.

I can not understand where I'm wrong.
Thanks for the answers.

Francesco
1   L A T E S T    R E P L I E S    (Newest First)
cpyang Posted - 08/05/2016 : 6:44:55 PM
You can try first from GUI, and when the dialog opens, choose the popup menu near the top, which has the last entry as "Generate Script". This will produce the needed LabTalk code on the command window. For your case, the likely problem is with the sheet is needed, so maybe the following


impOPJ fname: = C:\Users\francesco\Desktop\file.opj info.wkspage:=Book1 info.wks:=Sheet1 info.cols:={0,1} options.FirstMode:=1 orng:=[Book1]Sheet1!(1 ,2);



CP

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