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 Origin C
 Specify that long name of worksheet is shown

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
stellarator Posted - 07/27/2016 : 10:49:47 AM
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2015 (64-bit) Sr2
Operating System: Windows 7, 64 bit

I can set the long name of a worksheet with OriginC by:

Worksheet wks = wksPage.Layers(1);
string strName = "long name";
wks.SetLongName(strName);

How can I specify, that the long name is shown for all worksheets?

Now I have to manually right click on the worksheet tab and select "sheet name to show". This is annoying, if I have to do this for many worksheets?




2   L A T E S T    R E P L I E S    (Newest First)
stellarator Posted - 07/30/2016 : 05:20:01 AM
Thanks, that was the right solution.

stellarator
yuki_wu Posted - 07/27/2016 : 11:19:32 PM
Hi,

I think the script below can help you:

wks.LT_set_var("layer.namemode", 0);

in which 0 = Show Long Name if available, 1 = Short Name(default), 2 = Long Name.

Hope it helps.

Yuki

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