Getting error dialogue when opening excel files from a website

We have this application that allows the user to open documents from our website. We provide a mime type when we open the document which is set to:

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

The error the user gets when the document are opened are shown in the attached screenshot. After the dialoge is closed, the document opens.

I’m attaching the file as well here, if that’s of any help.

Hi,

Well, I think you may try to use the following sample code:

Workbook workbook = new Workbook(“Mappe1.xlsx”);

//… Your code goes here



//Save in xlsx format and send the file to user so that he may open the file in
//some application or save it to some location

workbook.Save(this.Response, “Report.xlsx”, ContentDisposition.Attachment, new OoxmlSaveOptions());

Response.End();


For complete reference, see the document:
http://www.aspose.com/documentation/.net-components/aspose.cells-for-.net/saving-files.html

thank you.



I figured it out. My problem was rooted in version 4.9 of Cells. After upgrading to 5.2.2 it worked just fine.

Consider this topic closed.