Aspose.Cells with ASP

Hi DOSHI,

I try to make you understand. look the files with .xls extension need some viewer type product which can understand the .xls format and open the spreadsheet file for viewing. For example you do require MS Word to view .doc extension files, you do require MS Powerpoint to view .ppt slides etc. So any files (whether it 's created by Aspose.Cells or not) with extension .xls do require some viewer container like MS Excel. Aspose.Cells does not do with recognization of .xls files, It just an independent set of library which is used to read, create or update .xls (excel) files with all the flavour of formattings, formula calculation independent engine, charts and pivot table reports etc. I think you get the Unknown File Type because you have not any container / viewer program installed on your system for viewing the file. And for your info, this is routine of IE not Aspose.Cells (Aspose.Cells is nothing to do with recognizing the file formats for download dialog box), since the download file dialog box is shown for Response object caused by the IE routine (it does not concern with Aspose.Cells at all). If you try eliminate all the code related Aspose.Cells in your source code and just use the Response object to set the content type and AddHeader .xls file and write the binary data, you will find the same dialog with the format recognization problem. This problem will be resolved when you install MS Excel or any other xls file viewer program on your machine.

And yes, Aspose.Cells has its own formation of smart markers which is different from those (data markers) of ExcelWriter and you have to only follow the Aspose.Cells standards.

Hopefully you undestand now.

Thank you.