How to Read percentage value with sign(%) from Exc

2019-08-18 00:31发布

问题:

Input: Cell Value=6.25%;

var Value= ws1.Cell(rowNum, collNum).Value.ToString();

Output: 0.0625 Expected Output: 6.25%

回答1:

I find the solution by using .GetFormattedString() insted of .Value