Reports

Reports

Postby HunterEC » Sat Oct 13, 2012 5:17 am

Guys:

Two REPORT questions:

1. Is there a way on the REPORT command to set a different FONT for the report TITLE ?
2. Can we set a conditional SHADOW on a column ?

Thank you.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: Reports

Postby ADutheil » Sat Oct 13, 2012 2:38 pm

oReport:oTitle:aFont[ n1 ] := { || n2 } where n1 is the line number of your title and n2 the order your font was created.
Code: Select all  Expand view
DEFINE FONT oFont1 NAME "ARIAL" SIZE 0,-10
DEFINE FONT oFont2 NAME "CALIBRI" SIZE 0,-10 BOLD
DEFINE FONT oFont3 NAME "ARIAL" SIZE 0,-10 BOLD ITALIC
REPORT oReport TITLE "TITLE LINE 1","TITLE LINE 2""TITLE LINE 3" ;
          FONT   oFont1, oFont2, oFont3 ;
....
END REPORT
IF oReport:lCreated
   oReport:oTitle:aFont[1] := {|| 2 }
   oReport:oTitle:aFont[2] := {|| 3 }
   oReport:oTitle:aFont[3] := {|| 1 }
ENDIF
ACTIVATE REPORT oReport


As for the shadow question I´ve never used but I´d try something like this:
Code: Select all  Expand view
IF oReport:lCreated
   oReport:lShadow := if( your_condition, .T., .F. )
ENDIF
 
Regards,

André Dutheil
FWH 13.04 + HB 3.2 + MSVS 10
ADutheil
 
Posts: 368
Joined: Sun May 31, 2009 6:25 pm
Location: Salvador - Bahia - Brazil

Re: Reports

Postby HunterEC » Sun Oct 14, 2012 1:07 am

André:

Thank you for your help. I'll give it a try. Obrigado.


Gustavo
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 82 guests

cron