andrewducker: (Default)
[personal profile] andrewducker
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.

Date: 2010-06-30 05:23 pm (UTC)
From: [identity profile] crm.livejournal.com
the excell OLE/API makes it a really powerful scripting / database tool... just... good luck finding any documentation on it.

Date: 2010-07-01 04:10 pm (UTC)
From: [identity profile] crm.livejournal.com
with microsoft though - i imigine thats similar to making a website in front page, then opening it in a text editor to learn html.

Date: 2010-07-01 09:44 am (UTC)
From: [identity profile] broin.livejournal.com
Goodness, yes.

I've pretended to have lots of skillsets thanks to pasting code from forums. ;)

November 2025

S M T W T F S
       1
2345678
9101112131415
16171819202122
23242526272829
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Nov. 1st, 2025 06:13 pm
Powered by Dreamwidth Studios