OpenXML Custom column width not working
问题 I'm trying to change the width of some excel columns. I've tried everything but I keep getting empty excel documents, my excel file works fine without this addition: Columns columns = new Columns(); columns.Append(new Column() { Min = 1, Max = 3, Width = 20, CustomWidth = true }); columns.Append(new Column() { Min = 4, Max = 4, Width = 30, CustomWidth = true }); wsPart.Worksheet.Append(columns); But as soon as I add this like this user suggested, I have to repair my excel file, and it will be