Format excel column to decimal doing export from c#
Here you go, one complete method. Just send a DataTable and a file name and this does the rest. This snippet will also make the header row gray with bold text and will auto fit the columns. using OfficeOpenXml; using OfficeOpenXml.Style; public void ExportToExcel(DataTable dt, string FileName) { //create a new byte array byte[] bin; … Read more