Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Microsoft.Office.Core;
- using Excel = Microsoft.Office.Interop.Excel;
- xlWorkSheet.UsedRange.Rows.AutoFit();
- xlWorkSheet.UsedRange.Columns.AutoFit();
- aRange.Columns.AutoFit();
- worksheet.Columns.AutoFit();
- worksheet.Rows.AutoFit();
Add Comment
Please, Sign In to add comment