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 for Programming
 Forum for Origin C
 Specify that long name of worksheet is shown
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

stellarator

Germany
5 Posts

Posted - 07/27/2016 :  10:49:47 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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?




yuki_wu

896 Posts

Posted - 07/27/2016 :  11:19:32 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

stellarator

Germany
5 Posts

Posted - 07/30/2016 :  05:20:01 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks, that was the right solution.

stellarator
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