FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Reports
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Reports
Posted: Sat Oct 13, 2012 05: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.

Posts: 368
Joined: Sun May 31, 2009 06:25 PM
Re: Reports
Posted: Sat Oct 13, 2012 02:38 PM
oReport:aFont[ n1 ] := { || n2 } where n1 is the line number of your title and n2 the order your font was created.
Code (fw): Select all Collapse
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 (fw): Select all Collapse
IF oReport:lCreated
   oReport:lShadow := if( your_condition, .T., .F. )
ENDIF
Regards,



André Dutheil

FWH 13.04 + HB 3.2 + MSVS 10
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: Reports
Posted: Sun Oct 14, 2012 01:07 AM

André:

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

Gustavo

Continue the discussion