Jump to content
Fivewin Brasil

Imprimir fonte com fundo preto


oribeiro

Recommended Posts

Melhorando...

   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] )


Link to comment
Share on other sites

E com o Pen não dá ? (ele faz o fundo, a cor da letra fico devendo se funciona)

 

Print oPrn Name "Guia"
oPrn:SetCopies(Pcopia)
oPrn:SetLandScape()

Define Font oFont1 Name "Times New Roman" Bold Size 0, -11      of oPrn
Define Font oFont2 Name "Times New Roman"      Size 0, -07      of oPrn
Define Font oFont3 Name "Times New Roman" Bold Size 0, -07      of oPrn
Define Font oFont4 Name "Courier New"          Size 0, -07 Bold of oPrn
Define Font oFont5 Name "Times New Roman"      Size 0, -08      of oPrn

Define Pen oPen1 Width 50 Color nRgb(192,192,192)

nLi    := oPrn:nLogPixelX()/2.54
nCo    := oPrn:nLogPixelY()/2.54

While (nPagina <= Len(aProce))

      Page

          oPrn:Box(0.20*nLi, 0.1*nCo, 20*nLi, 28.6*nCo)

          oPrn:Say(0.66*nLi, 0.34*nCo, Left(Pconvenio,28), oFont5)
          oPrn:Say(0.50*nLi, 6.00*nCo, "GUIA DE SERVIÇO PROFISSIONAL / SERVIÇO AUXILIAR DE DIAGNÓSTICO E TERAPIA - SP/SADT", oFont1)
          oPrn:Say(0.66*nLi, 25.5*nCo, "2- N° ", oFont2)
          oPrn:Say(0.66*nLi, 26.5*nCo, Pnumero, oFont3)

          oPrn:Line(1.23*nLi, 0.33*nCo, 1.23*nLi, 28.3*nCo)

          oPrn:Box(1.46*nLi, 0.33*nCo, 2.22*nLi, 28.3*nCo)

          oPrn:Say(1.46*nLi, 0.34*nCo, "1- Registro ANS", oFont2)
          oPrn:Line(1.46*nLi, 2.23*nCo, 2.22*nLi, 2.23*nCo)
          oPrn:Say(1.46*nLi, 2.34*nCo, "3- Número da Guia Principal", oFont2)
          oPrn:Line(1.46*nLi, 9.35*nCo, 2.22*nLi, 9.35*nCo)
          oPrn:Say(1.46*nLi, 9.44*nCo, "4- Data da Autorização", oFont2)
          oPrn:Line(1.46*nLi, 12.11*nCo, 2.22*nLi, 12.11*nCo)
          oPrn:Say(1.46*nLi, 12.20*nCo, "5- Senha", oFont2)
          oPrn:Line(1.46*nLi, 15.11*nCo, 2.22*nLi, 15.11*nCo)
          oPrn:Say(1.46*nLi, 15.25*nCo, "6- Data Validade da Senha", oFont2)
          oPrn:Line(1.46*nLi, 22.11*nCo, 2.22*nLi, 22.11*nCo)
          oPrn:Say(1.46*nLi, 22.20*nCo, "7- Data de Emissão da Guia", oFont2)
          oPrn:Say(1.80*nLi, 0.64*nCo, Tans, oFont3)
          oPrn:Say(1.80*nLi, 2.64*nCo, PnumeroP, oFont3)

          oPrn:Say(1.80*nLi, 09.45*nCo, "____|____|_________", oFont5)

          oPrn:Say(1.80*nLi, 15.25*nCo, "____|____|__________", oFont5)

          oPrn:Say(1.80*nLi, 22.50*nCo, TData, oFont3)

          oPrn:Box(2.35*nLi, 0.42*nCo, 2.56*nLi, 28.23*nCo, oPen1)

          oPrn:Say(2.30*nLi, 0.34*nCo, "Dados do Beneficiário", oFont2)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...