I am creating an excel sheet using C # .net. Eventually I want to auto-adjust the columns. I am using the following code.
sheet0.Cells["A2:B2"].Columns.AutoFit();
But this is an exception. Can anyone help me solve this problem?
Thank.
source
to share