<w:LatentStyles DefLockedState=“false” LatentStyleCount=“156”>
</w:LatentStyles>
<![endif]–><!–[if gte mso 10]>
<![endif]–>
Hi,
We are evaluating aspose.cell for .net, we have existing excel templates in our
project. Each template is having two sheets in it i.e. summary and account data
sheet. We are writing data to account detail sheet by using the aspose.cells.
Summary sheet contains a Pivot table and it is getting generated based on
generated account detail sheet.
In code first we are copying existing template to a temp file then writing the
data to account detail sheet by using Aspose then saving the same temp file
by using below line of code:
AsposeExcelWorkBook.Save(strFilePath,SaveFormat.Excel97To2003)
then in next step we are sending the file to browser with below lines of code:
Response.Clear();
Response.ContentType = "application/x-msexcel";
Response.AddHeader("Content-Disposition", "inline;
filename=Report.xls");
Response.WriteFile(strFilePath);
Response.End();
Now when we open the generated file in excel we are getting repair alert box
and a message as below:
Microsoft Office Excel File Repair Log
Errors were detected in file 'some file path'
The following is a list of repairs:
Repairs were made to PivotTable report 'PivotTable1' on '[Report.xls]SUMMARY'.
Any suggestions in this regards will be really helpful.
Thanks in advance.
Regards,
Sandeep Newad