Is there any code that I can use which will open a table and automatically adjust the column widths (much like you can do in MS Excel) and then close the table?
However there is no AutoSize method - you would need to know the widths you want in advance, with -1 being the default, and positive numbers actual widths.