Free Support Forum -

Issue with 'Workbook.Save' method

I am having a very abrupt issue with 'Workbook.Save' method, if I am passing some Japanese name of file to save then the name if saved file is garbled.

The overload of 'Save' method I am using is:

workbook.Save(HttpResponse-response, String-fileName, ContentDisposition.Attachment, new XlsSaveOptions());

I am using ASPOSE.Cells (version- 7.0.2).


Please provide us a simple sample project and screenshot illustrating the problem. Highlight the problem in a screenshot with red circles. We will log this issue and look into it and after fixing the problem, update you asap.

This can be fixed by calling HttpUtility.UrlPathEncode (or Server.UrlPathEncode in an aspx code behind) when passing the file name to the Save method.

workbook.Save(HttpContext.Current.Response, HttpUtility.UrlPathEncode(erg.FileName), ContentDisposition.Attachment, new OoxmlSaveOptions(SaveFormat.Xlsm));