HpdfPrint x Print

Projeto [x]Harbour - Compilador de código aberto compatível com o Clipper.

Moderador: Moderadores

malcarli
Usuário Nível 3
Usuário Nível 3
Mensagens: 246
Registrado em: 20 Ago 2015 18:14
Localização: marilia/sp

HpdfPrint x Print

Mensagem por malcarli »

Como substituir, sem ter fazer este teste, somente a constante HpdfPrint por Print?

Código: Selecionar todos

If lPdf
   @ nLin, 200 HpdfPrint [Página: ] + Ltrim(Strzero(nPag, 5)) font "arial" size 8 RIGHT
Else
   @ nLin, 200 Print     [Página: ] + Ltrim(Strzero(nPag, 5)) font "arial" size 8 RIGHT
Endif

Att.

Marcelo A. L. Carli
Marília/SP
Capital Nacional do Alimento ®

http://marcelo.lx.com.br
http://www.marazambon.blogspot.com/
Email / Skype: malcarli@life.com.br
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20416
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP
Curtiram: 1 vez

HpdfPrint x Print

Mensagem por JoséQuintas »

Complicado, dá uma olhada no que eles traduzem.

À primeira vista, criar um terceiro.
Mais ou menos isto:

Código: Selecionar todos

#command PRINTREL <lin>, <col> <expr> FONT <cFont> SIZE <nSize> <alignment> =>
@ nLin, 200 HpdfPrint [Página: ] + Ltrim(Strzero(nPag, 5)) font "arial" size 8 RIGHT

PRINTREL nLin, 200 cText FONT cFont SIZE nSize RIGHT

FUNCTION PrintRel( nLin, 200, cText, cFont, nSize, cAlignment )

   IF lPDF
      @ nLin, 200 HpdfPrint cText font cFont size nSize cAligment )
   ELSE
     @ nLin, 200 Print cText font cFont Size nSize cAligment )
   ENDIF

   RETURN NIL
José M. C. Quintas
Harbour 3.2, mingw, multithread, gtwvg, fivewin 25.12, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui), (hmg3), (hmg extended), (oohg), PNotepad, ASP, (Linux/Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Responder