@amjad.sahi, @Professionalize.Discourse, @John.He, @simon.zhao
worksheet.Cells.SetColumnWidthPixel(0, 5);
worksheet.Cells.SetColumnWidthPixel(1, 5);
var textRange = worksheet.Cells.CreateRange(0, 0,1, 2);
textRange .…...Font rangeFont = worksheet.Cells[textRange...textRange.FirstColumn].GetStyle().Font; // Calculate the width of the...