win_PrintFileRaw
Function Main
clear
sFile := 'c:\temp\file_to_print.prn'
Aprn = GetPrinters(.t.)
prin := {}
for i = 1 to len(aprn)
aadd(prin,aprn[i,1])
next
op = Achoice(5,5,08,60,prin)
clear
@ 5,5 say aprn[op,1]
@ 5,30 say aprn[op,2]
Set Device To Print
Set Print On
Set Print To sFile
@ 1,1 ...
Pesquisa resultou em 539 ocorrências: +PrintFileRaw
Termo pesquisado: +printfileraw
- 30 Jul 2025 14:39
- Fórum: [x]Harbour
- Tópico: Impressão em EPSON antigas no Harbour
- Respostas: 3
- Exibições: 4475
- 31 Mar 2025 19:04
- Fórum: [x]Harbour
- Tópico: Ajuda para impressão em Argox
- Respostas: 7
- Exibições: 5892
Ajuda para impressão em Argox
... PCol() Say "E" + cEol // envia para a impressora
@ Prow()+0, PCol() Say "Q" + cEol // esvazia a memoria da impressora
SET PRIN TO
SET DEVI TO SCREEN
cPrinter := GetDefaultPrinter() // pega impressora padrao
for i:=1 to 2
PrintFileRaw( cPrinter, cFileImp, "Etiqueta:"+str(i,3) )
next
Return
@ Prow()+0, PCol() Say "Q" + cEol // esvazia a memoria da impressora
SET PRIN TO
SET DEVI TO SCREEN
cPrinter := GetDefaultPrinter() // pega impressora padrao
for i:=1 to 2
PrintFileRaw( cPrinter, cFileImp, "Etiqueta:"+str(i,3) )
next
Return
- 11 Mar 2025 20:04
- Fórum: [x]Harbour
- Tópico: argox-os-214plus
- Respostas: 4
- Exibições: 3251
argox-os-214plus
... Prow()+0, PCol() Say "Q" + cEol // esvazia a memoria da impressora
SET PRIN TO
SET DEVI TO SCREEN
cPrinter := GetDefaultPrinter() // pega impressora padrao
for i:=1 to N_ETIQ
PrintFileRaw( cPrinter, cArquivo, "Etiqueta Lote ->"+str(i,3) )
next
if etiqbranca
ETIQ_B.RELEASE
endif
Return
SET PRIN TO
SET DEVI TO SCREEN
cPrinter := GetDefaultPrinter() // pega impressora padrao
for i:=1 to N_ETIQ
PrintFileRaw( cPrinter, cArquivo, "Etiqueta Lote ->"+str(i,3) )
next
if etiqbranca
ETIQ_B.RELEASE
endif
Return
- 21 Fev 2025 11:32
- Fórum: [x]Harbour
- Tópico: lx-330+ /II compressão
- Respostas: 0
- Exibições: 5506
lx-330+ /II compressão
... tem uma cliente que NAO comprime na VERTICAL.
uso o comando: @ prow(), 00 say chr(27)+"0"
estou direcionando para um arquivo e depois uso o PrintFileRaw(pprt,a) para imprimir.
se trato direto como MATRICIAL NAO imprime. a M. do Win costuma fazer isso funciona e de repente para de funcionar..
ai ...
uso o comando: @ prow(), 00 say chr(27)+"0"
estou direcionando para um arquivo e depois uso o PrintFileRaw(pprt,a) para imprimir.
se trato direto como MATRICIAL NAO imprime. a M. do Win costuma fazer isso funciona e de repente para de funcionar..
ai ...
- 04 Dez 2024 15:46
- Fórum: [x]Harbour
- Tópico: Converter Impressão Clipper -> Harbour
- Respostas: 4
- Exibições: 3902
Converter Impressão Clipper -> Harbour
... a impressão para um arquivo
SET PRINTER TO arquivo.txt
// código do relatório
// finalizar o relatório
SET PRINTER TO
// enviar para a impressora
win_PrintFileRaw(win_PrinterGetDefault(), "arquivo.txt")
// remover arquivo temporário
FErase("arquivo.txt")
Precisa incluir hbwin.hbc na compilação.
SET PRINTER TO arquivo.txt
// código do relatório
// finalizar o relatório
SET PRINTER TO
// enviar para a impressora
win_PrintFileRaw(win_PrinterGetDefault(), "arquivo.txt")
// remover arquivo temporário
FErase("arquivo.txt")
Precisa incluir hbwin.hbc na compilação.
- 04 Dez 2024 12:39
- Fórum: [x]Harbour
- Tópico: Converter Impressão Clipper -> Harbour
- Respostas: 4
- Exibições: 3902
Converter Impressão Clipper -> Harbour
olá, use o comando PRINTFILERAW() ou Win32Prn():new( cPrn ).
Regards, saludos.
Regards, saludos.
- 26 Nov 2024 00:09
- Fórum: MiniGui
- Tópico: include\i_MsgBox.ch(20) Warning W0002 Redefinition or dupli
- Respostas: 59
- Exibições: 22965
include\i_MsgBox.ch(20) Warning W0002 Redefinition or dupli
... nas fun‡äes:
GetDefaultPrinter(), CreateObject(), hb_SetCodepage()
hbmk2: Dica: Adicionar op‡Æo 'hbwin.hbc' faltando nas fun‡äes:
win_PrintFileRaw(), win_printerStatus(), win_Prn(),
win_printerGetDefault(), win_OEMToANSI(), wapi_MessageBox(),
wapi_DestroyMenu(), wapi_GetActiveWindow ...
GetDefaultPrinter(), CreateObject(), hb_SetCodepage()
hbmk2: Dica: Adicionar op‡Æo 'hbwin.hbc' faltando nas fun‡äes:
win_PrintFileRaw(), win_printerStatus(), win_Prn(),
win_printerGetDefault(), win_OEMToANSI(), wapi_MessageBox(),
wapi_DestroyMenu(), wapi_GetActiveWindow ...
- 11 Out 2024 08:34
- Fórum: Contribuições, Dicas e Tutoriais
- Tópico: imagem na etiqueta ZEBRA
- Respostas: 1
- Exibições: 2583
imagem na etiqueta ZEBRA
... 716f4Yor3v3ehTwpExN8n/P4ZU/w+4UUUnF8dj/+S7zquI2L8A703y0s=:C21C"
// Termina Etiquetas
? "^XZ"
Setalternate()
WIN_PrintFileRaw(cPrinter, [COD_BARRA.TXT], [BARRA])
ferase([COD_BARRA.TXT])
Next
Setalternate()
WIN_PrintFileRaw(cPrinter, [COD_BARRA.TXT], [BARRA ...
// Termina Etiquetas
? "^XZ"
Setalternate()
WIN_PrintFileRaw(cPrinter, [COD_BARRA.TXT], [BARRA])
ferase([COD_BARRA.TXT])
Next
Setalternate()
WIN_PrintFileRaw(cPrinter, [COD_BARRA.TXT], [BARRA ...
- 29 Ago 2024 09:13
- Fórum: Ferramentas de Apoio
- Tópico: epsom lx-350
- Respostas: 7
- Exibições: 10203
epsom lx-350
... enviar caracteres para resetar e converter para 10PP
+++ pelo visto NAO funcionou usei de um arquivo printer.dbf +++ por enviar o txt pelo PrintFileRaw(pprt,a,pprograma)
não sei se poderia.
mandei chamar um tec para configurar na Impressora MANUALMENTE 10PP
a EPSON deveria ter um Aplicativo ...
+++ pelo visto NAO funcionou usei de um arquivo printer.dbf +++ por enviar o txt pelo PrintFileRaw(pprt,a,pprograma)
não sei se poderia.
mandei chamar um tec para configurar na Impressora MANUALMENTE 10PP
a EPSON deveria ter um Aplicativo ...
- 30 Abr 2024 13:17
- Fórum: [x]Harbour
- Tópico: Dúvida, guilhotina impressora Tanca
- Respostas: 10
- Exibições: 1527
Dúvida, guilhotina impressora Tanca
... TXT]+ALLTRIM(STRZERO(A,2))
WLINHA := &xTXT+CHR(13)+CHR(10)
FSEEK ( TXTARQ, 0, 2 )
FWRITE( TXTARQ, ALLTRIM(WLINHA), LEN(WLINHA))
A++
ENDDO
FCLOSE(TXTARQ)
cArquivo := AAA
cImpressora := GetDefaultPrinter() // Pego a Impressora Padrão
PrintFileRaw(cImpressora, cArquivo, [Teste])
RETURN NIL
WLINHA := &xTXT+CHR(13)+CHR(10)
FSEEK ( TXTARQ, 0, 2 )
FWRITE( TXTARQ, ALLTRIM(WLINHA), LEN(WLINHA))
A++
ENDDO
FCLOSE(TXTARQ)
cArquivo := AAA
cImpressora := GetDefaultPrinter() // Pego a Impressora Padrão
PrintFileRaw(cImpressora, cArquivo, [Teste])
RETURN NIL
- 07 Fev 2024 16:36
- Fórum: [x]Harbour
- Tópico: Win32Prn() Número de cópias sempre 1
- Respostas: 16
- Exibições: 5749
Win32Prn() Número de cópias sempre 1
... FSeek (Prn_HANDLE,0,2) //POSICIONE NO FIM DO ARQUIVO
FWrite(Prn_HANDLE,cNorI) //normal
FClose(Prn_HANDLE)
EndIf
If aMo=.T. //imprime
Win_PrintFileRaw(cPrinter,cArq,"")
EndIf
Else
nOrgAlt :=oPrinter:LineHeight()
oPrinter:LineHeight := nOrgAlt * mAltLetra //1.10 aumenta em 10% a linha erro ...
FWrite(Prn_HANDLE,cNorI) //normal
FClose(Prn_HANDLE)
EndIf
If aMo=.T. //imprime
Win_PrintFileRaw(cPrinter,cArq,"")
EndIf
Else
nOrgAlt :=oPrinter:LineHeight()
oPrinter:LineHeight := nOrgAlt * mAltLetra //1.10 aumenta em 10% a linha erro ...
- 07 Dez 2023 11:04
- Fórum: Contribuições, Dicas e Tutoriais
- Tópico: Ajustando sistema Hwgui(Win) para Hwgui(Linux).
- Respostas: 43
- Exibições: 42449
Ajustando sistema Hwgui(Win) para Hwgui(Linux).
... reference to `HB_FUN_WIN_PRINTERGETDEFAULT'
/usr/bin/ld: .hbmk/linux/gcc/cheques.o:(.data.rel+0x21b0): undefined reference to `HB_FUN_WIN_PRINTFILERAW'
/usr/bin/ld: .hbmk/linux/gcc/clientes.o:(.data.rel+0x13b0): undefined reference to `HB_FUN_HBROWSEEX'
/usr/bin/ld: .hbmk/linux/gcc/clientes.o ...
/usr/bin/ld: .hbmk/linux/gcc/cheques.o:(.data.rel+0x21b0): undefined reference to `HB_FUN_WIN_PRINTFILERAW'
/usr/bin/ld: .hbmk/linux/gcc/clientes.o:(.data.rel+0x13b0): undefined reference to `HB_FUN_HBROWSEEX'
/usr/bin/ld: .hbmk/linux/gcc/clientes.o ...
- 06 Dez 2023 19:18
- Fórum: [x]Harbour
- Tópico: Convertendo Sistema do GASPRO para Harbour
- Respostas: 276
- Exibições: 370580
Convertendo Sistema do GASPRO para Harbour
... meta dados.(?) -> Já desenhado via a classe WIN_PRN().
Criou o arquivo "Pedido.PDF". Ao abri-lo (Chrome),
Não entendi nada. Alxsts
Mas Win_PrintFileRaw() é enviado texto puro para o gerenciador do windows.
Para gerar em PDF use a classe WIN_PRN().
*********************************
Function ...
Criou o arquivo "Pedido.PDF". Ao abri-lo (Chrome),
Não entendi nada. Alxsts
Mas Win_PrintFileRaw() é enviado texto puro para o gerenciador do windows.
Para gerar em PDF use a classe WIN_PRN().
*********************************
Function ...
- 06 Dez 2023 17:26
- Fórum: [x]Harbour
- Tópico: Convertendo Sistema do GASPRO para Harbour
- Respostas: 276
- Exibições: 370580
Convertendo Sistema do GASPRO para Harbour
... FecharImpres
*********************
*
*
set margin to 0
set print off
set printer to
set console on
set Printer off
return .t.
Depois use Win_PrintFileRaw
**********************************
Function Imprime(cArq,cPrint,cTit)
**********************************
*
*
Local oPrn, aPrn:=WIN ...
*********************
*
*
set margin to 0
set print off
set printer to
set console on
set Printer off
return .t.
Depois use Win_PrintFileRaw
**********************************
Function Imprime(cArq,cPrint,cTit)
**********************************
*
*
Local oPrn, aPrn:=WIN ...
- 16 Ago 2023 20:09
- Fórum: [x]Harbour
- Tópico: FUNCAO PARA IMPRIMIR ARQUIVO .BMP EM ARGOX
- Respostas: 5
- Exibições: 585
FUNCAO PARA IMPRIMIR ARQUIVO .BMP EM ARGOX
... CHR(10) // Clear Image Buffer in Printer
? "1Y1104000550050FILEBMP"
? "Q"+ StrZero(1,4)
? "E"
Inicia:=.F.
SET ALTERNATE OFF
SET ALTERNATE TO
PrintFileRaw(cPrinter, "ETIQUETA.PRN", "Arquivo de etiquetas")
RETURN NIL
***************************************************
Desde já agradeço
? "1Y1104000550050FILEBMP"
? "Q"+ StrZero(1,4)
? "E"
Inicia:=.F.
SET ALTERNATE OFF
SET ALTERNATE TO
PrintFileRaw(cPrinter, "ETIQUETA.PRN", "Arquivo de etiquetas")
RETURN NIL
***************************************************
Desde já agradeço