I have looked at WebStyle but I don’t see what I need.
I need to change the justification for selected columns from default left to right.
How would I go about this?
Use
mystyle.Value("text-align") = "right"
for your style.
2 Likes
You are truly my hero today Alberto!
This code differs from changing color background but the main thing is that it does what I need.
Thank you.
Var vStyle As New WebStyle
vStyle.BackgroundColor = Color.White
vStyle.ForegroundColor = Color.Black
Var vLateMinutes As Integer
vLateMinutes = pRowSet.Column(pColName).IntegerValue
If (vLateMinutes > 0 And vLateMinutes < 60) Then
// kLateWarningStyle
vStyle.BackgroundColor = Color.Yellow
vStyle.ForegroundColor = Color.Black
ElseIf (vLateMinutes > 59) Then
// kLateAlertStyle
vStyle.BackgroundColor = Color.Red
vStyle.ForegroundColor = Color.White
End If
vStyle.Value("text-align") = "right" // 2024.08.09 <gp>
3 Likes