Fit columns


#1

Hi,

when exporting data to excel I want to be able to fit the columns to the maximum size needed to fit values for each column. Is there a way to do so?

Regards,
Michael


#2

Hi Michael,

Please try to use Worksheet.AutoFitColumn method.


#3

Hi Laurence,

thanks for your reply. Sometimes it’s better to read the documentation carefully before asking questions Wink