P is for Practical | |
PerlMonks |
Win32::OLE, Word, and BackgroundPatternColorby g0n (Priest) |
on Mar 29, 2006 at 15:59 UTC ( [id://539992]=perlquestion: print w/replies, xml ) | Need Help?? |
g0n has asked for the wisdom of the Perl Monks concerning the following question:
Greetings Monks,
I'm programatically generating a word document which contains tables. I need to set the top row cells of certain tables to have a background colour of 'gray30'. By recording and examining macros I got as far as BackgroundPatternColor, but it only seems to do anything when I supply a number:
Supersearching and googling hasn't got me any further towards what the number codes are, so I decided to find out empirically:
This little script produces a word doc, with a very large table in it, each cell of which is a different colour. When I run it, I get a range of colour from 'red so dark as to be black' up to carmine at 255, then it starts at 'red so dark as to be black' again. Can someone point me in the right direction? TIA
--------------------------------------------------------------
"If there is such a phenomenon as absolute evil, it consists in treating another human being as a thing." Can you spare 2 minutes to help with my research? If so, please click here
Back to
Seekers of Perl Wisdom
|
|