Hello All,
Is there any way to define background of text ? I want to print certain text in reverse mode : i.e. Black background and white foreground.
Is it possible ?
TIA
Milan.
Hello All,
Is there any way to define background of text ? I want to print certain text in reverse mode : i.e. Black background and white foreground.
Is it possible ?
TIA
Milan.
Milan,
Please review samples\report\rep22.prg
Is it possible using the PRINT class instead of REPORT class?
Thanks,
Oscar
function ReversePrint
local oPrn, oFont
PRINT oPrn PREVIEW
DEFINE FONT oFont NAME "ARIAL" SIZE 0,-30 BOLD OF oPrn
PAGE
@ 200,200 PRINT TO oPrn TEXT "This is Reverse Text" FONT oFont ;
COLOR CLR_WHITE,CLR_BLACK
ENDPAGE
ENDPRINT
RELEASE FONT oFont
return nil
Thank you Rao,
How can I do this with oPrn:Say() ?
Oscar

ORibeiro wrote:Thank you Rao,
How can I do this with oPrn:Say() ?
Oscar
function ReversePrint
local oPrn, oFont
local nOldClr
PRINT oPrn PREVIEW
DEFINE FONT oFont NAME "ARIAL" SIZE 0,-30 BOLD OF oPrn
PAGE
nOldClr := SetBkColor( oPrn:hDCOut, CLR_BLACK )
oPrn:Say( 200, 200, "This is Reverse Text", oFont, 5000, CLR_WHITE, 2 )
SetBkColor( nOldClr )
ENDPAGE
ENDPRINT
RELEASE FONT oFont
return nil