Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Yousfi Benameur
  Where is Yousfi Benameur?
 El Bayadh
 Algeria
 Yousfi Benameur
 To: Lynda Loveland
  Where is Lynda Loveland?
 Minneapolis
 Minnesota - United States
 Lynda Loveland
 Tags
Subject: RE: Row Colors on Report
Thread ID: 228775 Message ID: 228841 # Views: 9 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Reports and Printers
Date: Friday, May 22, 2009 2:07:59 AM         
   


> Hi,
>
> Am I able to change the row color (background shape or text color) conditionally on a report like I can in a grid using the dynamic settings?
>
> Lynda
yet Follow....
This work is derived from the dynamic formatting report in samples/solution.
I add in the class definition ydynamicformatting.prg a class Backcolor for coloring
the background of a field.
This class is executed if there is a condition in the user data field in report design.
For the rectangle shape of background i dont success to colorize with the user data
condition and the class but it easily done in the condition "print when".
You can customize the definition class and then apply formatting for each field(even
different colors,styles,...).
Listener can particularise each object on the report and render it separatly before drawing.
unzip and run the code you.prg (after "set defa to your unzip folder")

https://www.foxite.com/uploads/201ed490-9711-4718-bdc3-842a50d38456.zip



In the "Edit user data" modification ,the vfp team forget to make cut/copy/paste.then use CTRL+X,CTRL+C,CTRL+V instead.

Good luck


Dont rate please.its only for the pleasure to help.Give me only a feed back.
Yousfi Benameur

ENTIRE THREAD

Row Colors on Report Posted by Lynda Loveland @ 5/21/2009 2:43:06 PM
RE: Row Colors on Report Posted by Borislav Borissov @ 5/21/2009 3:01:16 PM
RE: Row Colors on Report Posted by Yousfi Benameur @ 5/21/2009 7:35:46 PM
RE: Row Colors on Report Posted by Yousfi Benameur @ 5/21/2009 3:24:30 PM
RE: Row Colors on Report Posted by Yousfi Benameur @ 5/21/2009 7:12:25 PM
RE: Row Colors on Report Posted by Yousfi Benameur @ 5/22/2009 2:07:59 AM