Hi All,
I am new to aspose.cells can you please help me regarding an issue .
I have method as follows:
private void button1_Click(object sender, EventArgs e)
{
Workbook wb = new Workbook();
FileStream fstream = new FileStream("C:\\search1.xls", FileMode.Open);
//Opening the Excel file through the file stream
wb.Open(fstream);
//Adding a new worksheet to the Workbook object
wb.Worksheets.Add();
//Obtaining the reference of the newly added worksheet by passing its sheet index
Worksheet worksheet = wb.Worksheets[0];
//Setting the name of the newly added worksheet
worksheet.Name = "My Worksheet";
//Saving the Excel file
fstream.Close();
wb.Save("C:\\search2.xls", FileFormatType.Excel2003);
System.Diagnostics.Process.Start("C:\\search2.xls");
}
But,when the new excel is opened it is opening with name myworksheet but there are two additional sheets like shhet3,sheet4... coming along with it and other is license sheet (i think this because i am using trial version).
Can yo help me in opening only myworksheet and discarding the other two.
Thank You,
Bindu.