I want to apply the % (percentage) number format using open XML C#
I have numeric value 3.6 that I want to display that number in excel as `3.6%.
How do I achieve that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Create a stylesheet,
Create a numberingformat,
Create a cell format and apply the numbering format id
and when you append the value to the cell have the following center code hereonversion and apply the style index
in my case i had three style index hence the 3 one was my percentage style index i.e 2 since the indexes start from 0