Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VFP9 Report with Color

Status
Not open for further replies.

grewegreg

IS-IT--Management
Apr 1, 2007
23
My question is this, I have a table with a field (ColorCode) that I am storing an RGB color code (stored as "RGB(255,0,255)"). Is there any way to get VFP9 SP1 to print a text field in a label or report, USING the RGB value that is stored in the ColorCode field?

I have made several different attempts to do this, but I keep coming back to the ugly solution of creating a text field for each color and using the "print when" condition to print the appropriate color. Anyone have any ideas? I could hack the FRX file, but that would make every field be that color and I really need it to be dynamic.

Too bad there is no "DynamicBackColor" in the reports. Where is VFP 10 when you need it???

I am glad to see the Search capability has been restored!




Greg Grewe
Diamond Consulting, LLC
 
Greg,

It should be possible to do this by writing a report listener, but I'm afraid I can't give you any details. I've never tried to do anything like that myself. I hope someone else can tell you.

Ilyad,

I apologize in advance for giving a reference to another forum with a solution

No need to apologise. It's perfectly legitimate to refer to other forums if they provide a valid answer to a question.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top