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
 Forum for Python
 How to extract window names to excel file?

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
spcwbyy Posted - 05/16/2024 : 11:35:36 AM
I am trying to extract all the data from a .opju file to .xlsx file but I cannot extract the window names. There are several windows and related data in these windows, I want to extract these data according to their corresponding workbook names but I couldn't. (I can't write the names of every window individually because there will be too many)

Anybody know how?

Thank you in advance

OriginPro 2024 (64-bit)
10.1.0.170 (Learning Edition)

ES
2   L A T E S T    R E P L I E S    (Newest First)
spcwbyy Posted - 05/16/2024 : 5:12:23 PM
Hello Chao,

Thank you so much for your help:) It worked!!

Best
ES


quote:
Originally posted by ChaoC

Hello ES,

You can use pages(). See: https://docs.originlab.com/originpro/classoriginpro_1_1pe_1_1Folder.html

Example to print the workbook names in the project:

for wb in op.pages('w'):
   print(wb.lt_range())


It will list them in the order present in the Project Explorer.

Best,
Chao



ES
ChaoC Posted - 05/16/2024 : 12:55:31 PM
Hello ES,

You can use pages(). See: https://docs.originlab.com/originpro/classoriginpro_1_1pe_1_1Folder.html

Example to print the workbook names in the project:

for wb in op.pages('w'):
   print(wb.lt_range())


It will list them in the order present in the Project Explorer.

Best,
Chao

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