How to Set Column width in Excel

as i run the activity, log is generated in background, what i am trying to say is it should come in the same format with proper column width after the activity is stopped and log is generated. And even if i use Excel.Extensions Package i have to use it in excel extension scope.