First – congratulations for you excellent product!
I have 1 small question. I have template Excel file in which have 3 sheets. I open this file, then fill it with my data and finally I want to make current let say let say sheet2 so when user open Excel this sheet to be first which he see. How to do this ?
I try with this code, it not produce error, but not do what I need.
Worksheets sheets = wb.Worksheets;
Worksheet Sh1 = wb.Worksheets[SheetNumInExcel];
wb.Worksheets.ActiveSheetIndex = SheetNumInExcel;
// this do not work
If you are not using a license file, the last “evaluation watermark” worksheet would be active by default. So, you need to use the license file and set the licensing code first:
//Instantiate an instance of license and set the license file through its path
Aspose.Cells.License license = new Aspose.Cells.License();