Cell.PutValue as percentage?


#1

Would it be possible to add functionality to have Cell.PutValue support an Excel percentage type?


#2

Hi Win,

The percetage is number format of a cell, not a value type.

For example, if you want to put 35% to a cell, you can do the following:

cell.PutValue(0.35)
cell.Style.Number = 9;

You can use Style.Number or Style.Custom to set number format.