07-17-2017, 08:15 AM
How to set the width of the cell in the xlsx file created programmatically?
تنظیم اتوماتیک :
تنظیم دستی با شماره و اندازه:
تنظیم اتوماتیک :
کد:
Range.Rows.AutoFit();
Range.Columns.AutoFit();
تنظیم دستی با شماره و اندازه:
کد:
worksheet.Columns[i].ColumnWidth = 18;