We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Cells - Error in Save

I load a specific XLT file and when I save this out to an XLS file, I continue to get the following Error:

Item has already been added. Key in dictionary: 'MBD001A0F48' Key being added: 'MBD001A0F48'

Hi,

Could you post your template xlt file here? We will check it soon.

Here is the file. I am using Version 4.5.0.3 of Aspose.Cells.

Hi,

Thanks for providing us the template file.

Kindly try the attached version (4.5.0.27), I tested it using the following code and it works fine.

Sample code:

Workbook workbook = new Workbook();
workbook.Open(@"f:\test\MIDOSPMN.xlt");
Worksheet ws = workbook.Worksheets[0];
ws.Cells["A22"].PutValue("Hello...");
workbook.Save("f:\\test\\out_MIDOSPMN.xls");

Thank you.

Still no luck. Here is a short sample of my code. I do some additional code.

oWbk.Open(psxltfile);

oWbk.Worksheets.AddCopy(0);

oWbk.Save(soutfile);

Hi,

Yes, we found the issue, we will figure it out soon.

Thank you.

Hi,

Please try this fix.

That worked, thank you.