Whil,

> I've not used one yet but it looks as if this is just the kind of thing 
> that a report listener (?) was designed for ? 

Yep !

That's exactly what I was thinking of.

But this is what I would do because it is easy for me <g>
Probably you'll catch a better way to do it in one of Cathy's books ???

The Report listener brings the "Render" method.

I would do it this way:

1 - Create a cursor that would have some tags stored in a field, such as: 
backcolor, forecolor and text (string to print). - something like: 
"rgb(128,128,128);rgb(0,0,0);text or value to print" 

2 - In my custom report listener, in "Render" method, I would catch each of 
these fields, and read and separate the contents using getwordnum, using the 
";" as separator.

3 - After getting each value, I would "draw" using GdiPlusX the text.

Note that: The render method can retrieve the exact position where the text 
will be drawn, and all properties.


I've created a specific report listener that "Draws" texts in FULL JUSTIFIED 
mode using this technique.

You can have more details in my blog post here:
"Full Justified Texts in your reports with GdiPlus X"
http://weblogs.foxite.com/cesarchalom/archive/2007/04/05/3641.aspx


Using that listener all you'll have to do is to adapt some codes.


This could be a good sample for the GdiPlusX library.
If you want, you can send me a sample B&W FRX and a cursor that generates the 
FRX with the "unknown" size, and I'll setup the GDI+ part for you.


I repeat, for MY OWN CASE, a listener will do the job, since I'm used to it in 
some cases like the one I pointed you above.

Hope this helps.

... And Im glad to be sending a message to you.
... You do a terrific job !

Regards from a big fan, whose life in VFP started with "The Fundamentals"

Cesar Chalom





---------- InĂ­cio da mensagem original ----------- 
De: [EMAIL PROTECTED] 
Para: [EMAIL PROTECTED] 
Cc: 
Data: Tue, 30 Oct 2007 23:29:16 +0000 
Assunto: Re: Fox printing colored cells on color printer 
> Whil Hentzen wrote: 
> > The point is that while the grid is chock full-o-colors, my FRX isn't. 
> > It is just set up to print b&w, like in olden days. 
> > 
> > And I guess that might be my answer - I suppose there's a way to modify 
> > the FRX so that the background color of the text objects use the same 
> > color as the corresponding cell in the grid does. 
> > 
> > Ick. 
> > 
> Whil 
> 
> I've not used one yet but it looks as if this is just the kind of thing 
> that a report listener (?) was designed for ? 
> 
> Paul Newton 
> 
> 
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to