We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to prevent forward slash from being escaped in custom format string

Hi Aspose

It appears as though that forward slashes (/) are always escaped in custom format strings for cells. Is there any way I can prevent this from happening, because I am trying to print a forward slash as a literal. This is a perfectly valid thing to do in Excel.

ws.Cells[0, 0].PutValue(50.231);
ws.Cells[0, 0].Style.Custom = “#,##0.00 “£/kWh””;

This should display 50.23 p/kWh

Thanks, Martin.


Thanks for pointing it out.

We will figure it out.

Thank you.


Please try the attached fix (, we have fixed the issue.

Thank you.