First let me say that the site’s search engine is terrible. The navigation on your web site is quite bad.
jj30:
First let me say that the site's search engine is terrible. The navigation on your web site is quite bad.
jj30:
That said, the product is working great serving XLS files (Excel97 / 2003) to Windows XP users who have Excel 2003 locally.If I hit the server from a Windows 7 machine that has Excel 2010 on it, I get "Excel cannot open the file because the file format or file extension is invalid. File may be corrupted, etc.".............So obviously, there's more to converting my code to Excel 2010 than I know of. What am I missing?
//Creating an Workbook object Workbook workbook = new Workbook(FileFormatType.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();
Yes, I did those three changes already.
Can you give me more help beyond what you’ve already given me? Thank you.
Hi,
It works fine here in Web Application / ASP.NET
projects. I don’t think your issue has any links to Aspose.Cells for .NET product. I think you may google to find out more information about your issue, e.g see the online resources for help:
http://www.coderanch.com/t/582495/open-source/opening-xlsx-file-when-downloaded
Also, please don’t involve Aspose.Cells product / APIs to confirm the issue. You may simply open an Excel file and save to Response object, you should get the same error.
e.g
FileStream fs1 = new FileStream("d:\\Book1.xlsx", FileMode.Open, FileAccess.Read);
byte[] data1 = new byte[fs1.Length];
fs1.Read(data1, 0, data1.Length);
this.Response.ContentType = "application/xlsx";
Response.AddHeader( "content-disposition","inline; filename=outBook1.xlsx");
Response.BinaryWrite(data1);
Response.End();
We also recommend you to kindly try our latest version:
Aspose.Cells for .NET (Latest Version)
Also, if you still think it is an issue with our product, please create a sample application and use the relevant Workbook.Save() overloaded method, zip the project and post it here, we will check it soon.
Thank you.
Save Editcancel
Hi Amjad,
Hi,
Please use the following link to search for all the posts, you have made to forums.
http://www.aspose.com/community/search/search-results.aspx?u=176292&o=DateDescending
In case, if you lose this link, then you can find it by clicking on you id and it will take you to the following page.
http://www.aspose.com/community/members/jj30.aspx
From there, you can click on your posts to search your previous posts.
Also you can directly go there by clicking the Posts link under your id.
I have identified the navigation issue as a pet peeve. When I am looking at my discussion thread and wish to reply to something, I must sign in. No big deal, I sign in. But when I do, it does not redirect me back to the discussion thread. Instead I am at some generic splash page, and must go back and find the link.
Hi,
Please create a simple project using latest version v7.3.2 with its Aspose.Cells API, zip it and post it here to reproduce the issue on our end as we could not reproduce the issue on our end.
By the way, did you try this simplest code in a simple ASP.NET
web application, The code is equal to the above code using Aspose.Cells APIs, e.g
FileStream fs1 = new FileStream(“Book1.xlsx”, FileMode.Open, FileAccess.Read);
Workbook workbook = new Workbook(fs1);
workbook.Save(HttpContext.Current.Response, “outFile.xlsx”, ContentDisposition.Inline, new OoxmlSaveOptions(SaveFormat.Xlsx));