Add a new worksheet

N

netOne

Hi
I meet a problem with add a new worksheet. I use C# as
program language.First I create SpreesheetClass's
object.When i invoke the methord to add a new worksheet
in this object.The program show like this
Microsoft.Office.Owc11.SpreesheetClass mySheet = new
Microsoft.Office.Owc11.SpreesheetClass();
mySheet.Sheets.Add(before,after,count,type);
Anyway i give the four parameters to invoke this
methord,The prompt error message always shows "Bad
parameters". How can i correct to give these four
parameters to add a new worksheet in the created owc
object.
Thanks a lot.
 
G

Gary Heaven

"netOne"

This is a web components forum. Your problem is a programming basics
problem.

..Owc11.SpreesheetClass is not a member of the Owc11, you are probably
looking for .Owc11.SpreadSheet
Also, the parameters to sheets.add are all optional (this is documented in
the help). You do not need any of them.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top