Page 1 of 1

cmsay

PostPosted: Wed Oct 15, 2014 3:11 pm
by Silvio.Falconi
How I can print a text with clrtext,backcolor

I can only use cmsay as

oPrn:CmSay( nRow, 3.5, "FEST",oFn1,,CLR_RED)

only color red How I can ake to print also the background color ?

Re: cmsay

PostPosted: Wed Oct 15, 2014 3:55 pm
by karinha

Re: cmsay

PostPosted: Wed Oct 15, 2014 4:47 pm
by Silvio.Falconi
I Know that documents
but I cannot print a text with background

Re: cmsay

PostPosted: Wed Oct 15, 2014 5:49 pm
by karinha
In printer.prg, maybe:

Code: Select all  Expand view

   SetbkMode( ::hDCOut, nBkMode )         // 1,2 transparent or Opaque
 


http://forums.fivetechsupport.com/viewtopic.php?f=3&t=9003&p=42765&hilit=nbkmode#p42765

Regards,

Re: cmsay

PostPosted: Wed Oct 15, 2014 6:00 pm
by Francisco Horta
utiliza un brush

DEFINE BRUSH oBrush COLOR nRGB(215,215,215)

aDesde:=oPrn:Cmtr2Pix( nRow, 0 )
aHasta:=oPrn:Cmtr2Pix( (nRow + 0.3), 27 )
oPrn:FillRect({aDesde[1],aDesde[2],aHasta[1],aHasta[2]},oBrush)
oPrn:CmSay( nRow, 4.0, "Total del dia : " + des_fecha(dFechaCorte), oFont[5] )

saludos

Re: cmsay

PostPosted: Sun Oct 19, 2014 10:38 am
by Silvio.Falconi
i WISH A COMMAND AS
@ SAY .... COLOR CLR_RED, CLR_YELLOW

Re: cmsay

PostPosted: Sun Oct 19, 2014 4:12 pm
by Otto
Silvio,
I suggest you to use EasyReport for printing.
Regards,
Otto

Re: cmsay

PostPosted: Tue Oct 21, 2014 10:25 am
by Silvio.Falconi
Otto, I must create a document with hand - I have many and many options