title: How to set col width in excel with xlslib
body: <p>I have a MFC C++(not managed) program and I need to generate a xls.</p>
  
  <p>I'm using xlslib(http://xlslib.sourceforge.net/) version 2.3.4 to generate the xls, but I can't resize excel columns.</p>
  
  <p>The class "worksheet" has the method "colwidth":</p>
  
  <pre><code>void colwidth(unsigned32_t col, unsigned16_t width, xf_t* pxformat = NULL);         // sets column widths to 1/256 x width of "0"
  </code></pre>
  
  <p>I invoked this method passing the parameters (0, 5), (0,20), (0,1000) and (1,5), no one worked :/.</p>
  
  <p>I just need that the column fit the size necessary to display all the text.</p>
  
  <p>Any help will be very useful, I'm lost.</p>