Free Support Forum - aspose.com

Error: The same worksheet name already exists

Hi,

I'm getting an error "The same worksheet name already exists" when I try to open a xlt file. There is only one sheet name("sheet1").

I'm using VS2005, Aspose.Cells.dll version 4.4.0.5, and a valid license file.

Here is the code I'm running to open the template file:

Aspose.Cells.

License license = new Aspose.Cells.License();

license.SetLicense("Aspose.Cells.lic");

Aspose.Cells.Workbook oBook = new Aspose.Cells.Workbook();

oBook.Open(slocalfile);

This code worked with an older version(4.0.1.0) using VS2003 and the same xlt file.

I've attached the xlt file and resulting xls file.

Hi,

Could you try the attached version.

Thank you.

That version fixed it. Thanks for the quick response!