I was writing something to automatically produce an Excel report on our DB2 usage, and I wanted to automatically resize the columns. A quick google for excel autosize columns c# and the second hit told me the answer was "Worksheet.UsedRange.Columns.AutoFit();"
I could go and try and find the answer via the help files, but I suspect I'd be looking for a while. Google really is my best friend when coding. Well, that and Resharper.
I could go and try and find the answer via the help files, but I suspect I'd be looking for a while. Google really is my best friend when coding. Well, that and Resharper.
no subject
Date: 2010-06-30 05:23 pm (UTC)no subject
Date: 2010-07-01 07:53 am (UTC)no subject
Date: 2010-07-01 04:10 pm (UTC)no subject
Date: 2010-07-01 09:44 am (UTC)I've pretended to have lots of skillsets thanks to pasting code from forums. ;)