Lines and color .. oPrint:say .....

Lines and color .. oPrint:say .....

Postby Rick Lipkin » Sun Sep 21, 2008 10:52 pm

To All

I like to write my own reports and not use the report class .. prefer the oPrint:say ...

I have a requirement to use grey "thick" lines to seperate each row and there is a 'status' field ( in each row ) that is 'red', 'yellow', and 'green' that I must 'fill" with color and text.

I have never used 'pens' ?? and have not found very many samples and would be grateful if someone could point me in the right direction or ( perhaps ) help with some code samples..

Many thanks
Rick Lipkin
SC Dept of Health, USA
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Lines and color .. oPrint:say .....

Postby Enrico Maria Giordano » Mon Sep 22, 2008 7:09 am

Code: Select all  Expand view
#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oPrn, oPen

    PRINT oPrn PREVIEW
        DEFINE PEN oPen WIDTH 50 COLOR CLR_GREEN

        PAGE
            oPrn:Line( 1000, 0, 1000, oPrn:nHorzRes(), oPen )
        ENDPAGE
    ENDPRINT

    DELETEOBJECT( oPen )

    RETURN NIL


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 57 guests