I am trying to set the number format for Excel file, but it is not working.
I am able to generate the excel file in classic asp, but number format to the column not able to set.
I used below code, please help help me!
set cell = cells.item_3("G2")
set range = cells.CreateRange ("G2","G200")
set stlflag = CreateObject("Aspose.Cells.StyleFlag")
stlflag.NumberFormat = true
set stl1= cell.GetStyle
stl1.Custom = "#.00"
'Apply style to the range
call range.ApplyStyle ((stl1),(stlflag))
cell.PutValue FormatNumber(rsDet(“exp_amt”),2)