title: C# Autofit method for excel sheet
body: <p>I am creating an excel sheet using C# .net. In the end I want to autofit the columns.
  I am using following code.</p>
  
  <pre><code>    sheet0.Cells["A2:B2"].Columns.AutoFit();
  </code></pre>
  
  <p>But it is is thorowing an exception.
  Can anyone help me solve this?</p>
  
  <p>Thank you.</p>