Página 1 de 1

PrintFileRaw -> PDF Printer

Enviado: 20 Mai 2016 14:37
por asimoes
Olá Pessoal,

A minha contribuição de hoje é PrintFileRaw, equivalente a win_PrintFileRaw, só que pode gerar um pdf enviando a impressão a partir de um arquivo texto simples para uma impressora pdf, a sequencia escape não consegui sucesso, formfeed funcionou, o código tá disponível para quem quiser testar.

Código no anexo.

PrintFileRaw -> PDF Printer

Enviado: 20 Mai 2016 18:25
por fladimir
:-Y :-Y :-Y

PrintFileRaw -> PDF Printer

Enviado: 23 Mai 2016 17:16
por rubens
ASimoes

Como compila? o que precisa incluir?

salvei como teste.prg e tentei um hbmk2 teste
mas dá um monte de erros
hbmk2: Processing environment options: -comp=bcc
C:\Users\PROGRAMA\AppData\Local\Temp\hbmk_espg86.dir\teste.c:
Warning W8079 teste.prg 120: Mixing pointers to different 'char' types in function HB_FUN_PRINTFILERAW
Warning W8079 teste.prg 122: Mixing pointers to different 'char' types in function HB_FUN_PRINTFILERAW
Warning W8079 teste.prg 128: Mixing pointers to different 'char' types in function HB_FUN_PRINTFILERAW
Warning W8079 teste.prg 143: Mixing pointers to different 'char' types in function HB_FUN_PRINTFILERAW
Warning W8004 teste.prg 181: 'dwJob' is assigned a value that is never used in function HB_FUN_PRINTFILERAW
Warning W8004 teste.prg 181: 'dwCount' is assigned a value that is never used in function HB_FUN_PRINTFILERAW
Warning W8080 teste.prg 181: 'dwBytesWritten' is declared but never used in function HB_FUN_PRINTFILERAW
Warning W8080 teste.prg 181: 'cDocName' is declared but never used in function HB_FUN_PRINTFILERAW
Warning W8004 teste.prg 112: 'rVal' is assigned a value that is never used in function HB_FUN_PRINTFILERAW

hbmk2: Error: Referenced, missing, but unknown function(s):
WIN_PRINTERGETDEFAULT()
Obg...

Rubens

PrintFileRaw -> PDF Printer

Enviado: 23 Mai 2016 17:18
por asimoes
Rubens,

Esse fonte foi feito para harbour 3.4 qual é a lib que você está usando?

PrintFileRaw -> PDF Printer

Enviado: 23 Mai 2016 17:44
por asimoes
O pdf criado com a função PrintFileRaw

Para funcionar instale uma impressora pdf CutePdf Writer ou Pdf Creator