Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing colors on the fly
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00568039
Message ID:
00569109
Views:
46
Hi Ashley,
It looks like a tedious thing, but overlapping objects could be feasible, I think... I'm thinking about programatically adding records to the .frx for each object that has a distinct RGB and have the color condition in the "print when" field (supexpr in .frx).
There was an announcement here from Evan Delay about a VFUG meeting this Wednesday, the guest speaker being John Koziol - that would be a perfect place to ask for ideas on FP reports.


>Hi Doru,
>
>Thanks for the reply..
>The problem is that the object's colours vary from record to record (the RGB value is stored in a field in the table)and can be any valid RGB combination - so multiple overlapping objects are not feasible.
>The PenRed/Blue/Green fields are numeric, so I could not point them to a UDF which could change the values from one detail line to the next.
>I was looking for a way to alter these values from one record to trhe next.
>
>
>>Hi Ashley,
>>
>>If you open the report file as a dbf (use yourReport.frx), and browse it, you will see 6 fields that control the color - Penred,Penblue,Pengreen,Fillred...
>>At run time you can replace the values with your values, close the file, and then run the report.
>>The only problem is to identify the records for the objects you want to change colours. You can use the expr field if they are variable or fields, or coordinates if the coordinates are fixed.
>>It would be safer (especially if you are in a multi user setting), if you copy the frx/frt report files into some temporary files, and do the modifications on the temporary file.
>>
>>I'm not sure now I understand what you want...
>>If you want the same field to be printed red, blue, etc. depending on some condition, then you can put two, or more objects overlaping each other, and use "print when" to select which one you print.
Doru
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform