I'm avoiding using any other set of modules.
What I am trying to do is set a cell's color in Excel, using the pywin32 libary. So far I've found how to get the cells color:
print xl.ActiveSheet.Cells(row, column).interior.color
and you can set it simply by assigning it in a similar fashion:
xl.ActiveSheet.Cells(row, column).interior.color = 0 #black
My question is how to set the cell's colour in RGB?
I need something called a ColorTranslator to OLE , but I don't know how to access system.drawing
since it seems like it's a .NET
thing. http://msdn.microsoft.com/en-us/library/system.drawing.colortranslator.toole.aspx
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…