| T O P I C R E V I E W |
| oconnor |
Posted - 12/02/2004 : 09:26:09 AM Origin Version (Select Help-->About Origin): Origin 7.5 Operating System: Windows XP
Hi,
If I create a worksheet with:
Worksheet wks; wks.Create( "Origin.otp");
How do I assign that worksheet a name? I have tried wks.SetName("Results"); and Worksheet wks("Results"); followed by wks.Create("Origin.otp"); and neither works.
Thanks,
Rod. |
| 2 L A T E S T R E P L I E S (Newest First) |
| easwar |
Posted - 12/02/2004 : 11:20:09 AM Hi Rod,
Just wanted to add the following comment:
The name you see on the title bar of the worksheet window (such as Data1) is actually the name of the Window/Page. The Page then contains the worksheet as a layer. There is only one Worksheet Layer per Page, and internally the worksheet layer has the name "Layer1", which is what you will get if you do a wks.GetName().
This is why you need to first get the page and rename the page instead, as Ruthven shows in his post.
Easwar OriginLab
|
| rlewis |
Posted - 12/02/2004 : 09:50:22 AM Try ... Wks.GetPage().Rename("Results"); |
|
|