Strange file name

When saving a workbook using aspose.cells version 2.0.50727 with the following method it appends random characters to the end of the file name. How do I stop this from happening?

workbook.Save(HttpContext.Current.Response, "QuarterReport.xlsx", ContentDisposition.Attachment, new OoxmlSaveOptions(SaveFormat.Xlsx));

Opens as QuarterReportCALPPTVM.xlsx

Hello
loussaertd


Please download and use our latest Aspose.Cells version: Aspose.Cells for .NET v7.2.0.2

I recommend you to use the latest version as these already have many issues resolved found in earlier versions. Please let us know about your feedback if the issue still pertains.

Thanks

Sorry I have that version 7.2.0.0 I was looking at the runtime version number.

Hi,

For strange name issue, please see the Aspose.Cells FAQs

Below is the FAQ, I am referring to. If you have any questions, please let us know.


Q: When I try to save an excel file with odd characters like é, è, â etc … in the file name, it works if I save it directly on disk but if I use something like:

excel.Save(“André.xls”, SaveType.OpenInExcel, FileFormatType.Default, Me.Response)

It gives me the very odd filename André.xls.‘’'


A: When you use OpenInExcel or OpenInBrowser option, the file name characters should be US-ASCII. It’s not limited by Aspose.Cells, but HTTP protocols. You can refer to rfc2183. It says:

2.3 The Filename Parameter

Current [RFC 2045] grammar restricts parameter values (and hence Content-Disposition filenames) to US-ASCII. We recognize the great desirability of allowing arbitrary character sets in filenames, but it is beyond the scope of this document to define the necessary mechanisms.