@rohan0910,
If you don’t want %
to be escaped, please use backslashes and double quotes. See following sample code:
Sample Code to Set Custom Number Format with Percentage using C#
Workbook workbook = new Workbook();
Cell cell = workbook.Worksheets[0].Cells["A1"];
cell.PutValue(52.86);
Style style = cell.GetStyle();
style.Custom = @"#,##0.00%";
cell.SetStyle(style);
Console.WriteLine(cell.StringValue);
cell = workbook.Worksheets[0].Cells["A2"];
cell.PutValue(52.86);
style = cell.GetStyle();
style.Custom = @"#,##0.00\%";
cell.SetStyle(style);
Console.WriteLine(cell.StringValue);
cell = workbook.Worksheets[0].Cells["A3"];
cell.PutValue(52.86);
style = cell.GetStyle();
style.Custom = "#,##0.00\"%\"";
cell.SetStyle(style);
Console.WriteLine(cell.StringValue);
workbook.Save(dir +"dest.xlsx");