Hi Christian!
How can I set font color and background color in a cell of a PDF Table on DynaPDF?
Regards
Hi Christian!
How can I set font color and background color in a cell of a PDF Table on DynaPDF?
Regards
I understand this:
call table.SetBackColor(row,column, alpha channel)
But where can I put the Color? Can I use RGB(255,0,0)?
Yeahh, Ok I got it:
call table.SetBackColor(row,column, alpha channel)
Where alpha channel must be spared by commas like in RGB = 255,0,0 = RED
call table.SetBackColor(rowNum, 0, 255, 0, 0)
like this passing color components works.
we do have it overloaded with 5 variants depending on what you want to pass.
e.g. integer numbers, floating point number or a color value:
SetBackColorFloat(Row as Integer, Column as Integer, channels() as double, ExtColorSpace as Integer = 0, ColorSpaceHandle as integer = 0) as boolean
SetBackColorFloat(Row as Integer, Column as Integer, paramarray channels as double) as boolean
SetBackColor(Row as Integer, Column as Integer, channels() as integer, ExtColorSpace as Integer = 0, ColorSpaceHandle as integer = 0) as boolean
SetBackColor(Row as Integer, Column as Integer, paramarray channels as integer) as boolean
SetBackColorValue(Row as Integer, Column as Integer, TPDFColorSpace as Integer, ColorValue as UInt32) as boolean
Which one also depends on the colorspace you need/have.