Excel not inserting leading zero
问题 I am using Office OpenXml to write to an Excel file. The file is a template so it already has all my headers and formatting for my columns. I am inserting numbers that have leading zeroes to a "special" column which is basically a 10 digit number. However in my code I can see that it is setting the value to for example 0000000004 . The result in the sheet with a value of 4 in that cell and the actual cell showing 0000000004 . Here is my code to write to the cell. if (reader[2].ToString()