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
 Thanks CP, it works! another question
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

trueone

USA
2 Posts

Posted - 02/09/2003 :  3:15:04 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic

Hi CP,

Thank you very much, it works. My version is Origin 7 (Evaluation)

Here I have another question. I want to creat a worksheet named "BookInfo", the following is my code, but after I run it, the new created worksheet is still called "Data1". Will you help me again?

Thank you in advance!
-------------------------------------------------------
// Create a worksheet
Worksheet wksData("BookInfo");
int nOptionW = CREATE_VISIBLE;
bool bRetW = wksData.Create("0", nOptionW);
-------------------------------------------------------

xh

easwar

USA
1965 Posts

Posted - 02/09/2003 :  5:14:06 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

You need to rename the worksheet page after creation:
 
Worksheet wksData;
int nOptionW = CREATE_VISIBLE;
bool bRetW = wksData.Create("Origin.OTW", nOptionW); // use standard Origin template for worksheet
wksData.GetPage().Rename("BookInfo"); // rename worksheet page


Easwar
OriginLab.

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