Page 1 of 1
printing in color
Posted: Tue Dec 16, 2008 7:25 am
by fagg
I am a non professional fivetech user
I program the print jobs with ' print oprn...'
How can I print fonts in colors??
Thanks for any help
José Deschutter, Belgium
Re: printing in color
Posted: Sun Jan 25, 2009 6:26 am
by Antonio Linares
Jose,
Class TPrinter Method Say() supports the use of colors:
Code: Select all
METHOD Say( nRow, nCol, cText, oFont,;
nWidth, nClrText, nBkMode, nPad ) CLASS TPrinter
where nClrText is the desired color to use:
oPrinter:Say( 2, 2, "Hello world", oFont, 100, CLR_RED )
There are some predefined colors CLR_... or you can specify the one that you want using:
nRGB( nRedValue, nGreenValue, nBlueValue )
i.e.:
nRGB( 128, 100, 50 )