Welcome to Clarion Community Sign in | Join | Faq

Clarion Language and Runtime Library

Started by Jax at 06-19-2008 2:29 AM. Topic has 6 replies.

Print Search
Sort Posts:    
   06-19-2008, 2:29 AM
Jax is not online. Last active: 7/21/2008 1:30:42 PM Jax

Top 200 Posts
Joined on 06-19-2008
Posts 3
Report Detail Color
Reply Quote
I am trying to highlight a record in the detail section in a Clarion report , is there any way to change the color on a single record with a condition.
   Report 
   06-19-2008, 6:00 AM
Russ is not online. Last active: 10/18/2008 7:50:29 PM Russ

Top 10 Posts
Joined on 10-20-2005
Posts 223
Re: Report Detail Color
Reply Quote
http://www.clarionmag.com/cmag/v10/v10n05reportcolors2.html (sub req)
Russ Eggen
www.radfusion.com

   Report 
   06-19-2008, 2:58 PM
Shankar is not online. Last active: 11/14/2008 4:04:22 PM Shankar

Top 10 Posts
Joined on 10-24-2005
Dubai, UAE
Posts 219
Re: Report Detail Color
Reply Quote
Hi!

Two ways of doing it ::

- have a BOX control and use PROP:Fill to set/reset the color
- have an image as the background and set it the corresponding wallpaper image

Regards

Shankar
   Report 
   06-30-2008, 6:18 AM
Jax is not online. Last active: 7/21/2008 1:30:42 PM Jax

Top 200 Posts
Joined on 06-19-2008
Posts 3
Re: Report Detail Color
Reply Quote
Hi

I am still not sure what you mean , I need to change the color of the background when reporting only on condition eg if 'FIELD' = 1 then , can I use PROP:Fill to set the colour and were would I use that command.
   Report 
   06-30-2008, 11:32 PM
Shankar is not online. Last active: 11/14/2008 4:04:22 PM Shankar

Top 10 Posts
Joined on 10-24-2005
Dubai, UAE
Posts 219
Re: Report Detail Color
Reply Quote
Hi!

Highlighting is done in two ways - either by a different background color (using the BOX method & PROP:Fill) or setting the color of the controls (using the PROP:Color or PROP:FillColor).

To change the background color of a BOX ::

Report$?BoxControl{PROP:Fill} = COLOR:Yellow

To change the background color of a STRING control ::

Report$?StringControl{PROP:FillColor} = COLOR:Yellow
or
Report$?StringControl{PROP:Color} = COLOR:Yellow

To change the foreground color of a STRING control ::

Report$?StringControl{PROP:FontColor} = COLOR:Red

ALL THESE SHOULD BE DONE BEFORE THE PRINT() COMMAND (In the Embeditor, click on Source, do a search for the PRINT(RPT:Detail) command and insert the code in an embed BEFORE that.
Regards

Shankar
   Report 
   07-01-2008, 12:17 AM
Jax is not online. Last active: 7/21/2008 1:30:42 PM Jax

Top 200 Posts
Joined on 06-19-2008
Posts 3
Re: Report Detail Color
Reply Quote
Hi

Thank you so much I have been trying to do that for ages

Regards
   Report 
   07-01-2008, 11:56 PM
Shankar is not online. Last active: 11/14/2008 4:04:22 PM Shankar

Top 10 Posts
Joined on 10-24-2005
Dubai, UAE
Posts 219
Re: Report Detail Color
Reply Quote
Hi!

You are welcome.

Also, be aware that the background color will not display if the Control is set as Transperent.

Regards

Shankar
   Report 
Clarion Communi... » Clarion » Clarion Languag... » Re: Report Detail Color

Powered by Community Server, by Telligent Systems