colorized retport header
Posted: Sat Jun 01, 2019 7:31 am
How I can colorize the header with Hgray color ?
www.FiveTechSoft.com
https://fivetechsoft.com/forums/
Code: Select all
#include "fivewin.ch"
#include "report.ch"
function Main()
local oRep, oFont, oBold, oCol
USE CUSTOMER NEW SHARED
SET FILTER TO RECNO() <= 20
GO TOP
DEFINE FONT oFont NAME "TAHOMA" SIZE 0,-12
DEFINE FONT oBold NAME "VERDANA" SIZE 0,-13 BOLD
REPORT oRep PREVIEW FONT oFont, oBold
oRep:aClrText[ 1 ] := CLR_BLACK
oRep:aClrText[ 2 ] := CLR_HRED
COLUMN oCol TITLE "NAME" DATA FIELD->FIRST FONT 1
oCol:bTitleFont := { || 2 }
COLUMN oCol TITLE "CITY" DATA FIELD->CITY FONT 1
oCol:bTitleFont := { || 2 }
ENDREPORT
ACTIVATE REPORT oRep
RELEASE FONT oFont, oBold
return nil
Code: Select all
#include "fivewin.ch"
#include "report.ch"
function Main()
local oRep, oFont, oBold, oCol
USE CUSTOMER NEW SHARED
SET FILTER TO RECNO() <= 20
GO TOP
DEFINE FONT oFont NAME "TAHOMA" SIZE 0,-12
DEFINE FONT oBold NAME "VERDANA" SIZE 0,-13 BOLD
REPORT oRep PREVIEW FONT oFont, oBold
oRep:aClrText[ 1 ] := CLR_BLACK
oRep:aClrText[ 2 ] := CLR_HRED
oRep:lTitleColorized:=.t.
// oRep:nClrTitle :=CLR_BLUE
oRep:lDivideHeader:=.f.
COLUMN oCol TITLE "NAME" DATA FIELD->FIRST FONT 1
oCol:bTitleFont := { || 2 }
COLUMN oCol TITLE "CITY" DATA FIELD->CITY FONT 1
oCol:bTitleFont := { || 2 }
ENDREPORT
ACTIVATE REPORT oRep
RELEASE FONT oFont, oBold
return nil