Normal Topic Color a total line in a report? (Read 641 times)
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Color a total line in a report?
Dec 1st, 2008 at 8:43pm
Print Post Print Post  
Can HTML coding be used somehow to color a total line in a report?  The background color, that is, for instance a total line that is black text on a yellow background, as if it were highlighted?
  

**
Captain Infinity
Back to top
IP Logged
 
Ben
Lantica Support
*****
Offline



Posts: 218
Joined: Apr 7th, 2005
Re: Color a total line in a report?
Reply #1 - Dec 1st, 2008 at 9:38pm
Print Post Print Post  
To achieve this, you will need to set the element that holds your [Total] to be invisible. You will then need to add an unbound value box [FormattedTotal] and use programming to set it as follows:

FormattedTotal = "<TD style=" + @Chr(34) + "background:ffdc00;" + @Chr(34) + ">" + Total + "</TD>"

Alternatively, you could add the following programming to the Total element:

Total = "<SPAN style=" + @Chr(34) + "background:ffdc00;" + @Chr(34) + ">" + Total + "</SPAN>"
  
Back to top
IP Logged
 
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Color a total line in a report?
Reply #2 - Dec 3rd, 2008 at 2:01pm
Print Post Print Post  
Thanks Ben, I'll give it a try.
  

**
Captain Infinity
Back to top
IP Logged