... 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
Pesquisa resultou em 198 ocorrências: +GetDefaultPrinter
Termo pesquisado: +getdefaultprinter
- 31 Mar 2025 19:04
- Fórum: [x]Harbour
- Tópico: Ajuda para impressão em Argox
- Respostas: 7
- Exibições: 5892
- 11 Mar 2025 20:04
- Fórum: [x]Harbour
- Tópico: argox-os-214plus
- Respostas: 4
- Exibições: 3251
argox-os-214plus
... 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 N_ETIQ
PrintFileRaw( cPrinter, cArquivo, "Etiqueta Lote ->"+str(i,3) )
next
if etiqbranca
ETIQ ...
@ 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 ...
- 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
... mingw32/bin/ld.exe: C:/Users/MICROV~1/AppData/Local/Temp/hbmk_8q1xoq.dir/rotinas5.o:rotinas5.c:(.data+0x3238): undefined reference to `HB_FUN_GETDEFAULTPRINTER'
f:/programasinstalados/hmg.3.5/mingw/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Users/MICROV~1 ...
f:/programasinstalados/hmg.3.5/mingw/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Users/MICROV~1 ...
- 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 Mar 2023 17:27
- Fórum: [x]Harbour
- Tópico: ERROR HBMK2
- Respostas: 18
- Exibições: 3002
ERROR HBMK2
... external "_HB_FUN_PRINTEREXISTS" referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\XHBIMPRESS.OBJ
Error: unresolved external '_HB_FUN_GETDEFAULTPRINTER' referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\XHBIMPRESS.OBJ
Error: Unresolved external '_HB_FUN_GETPRINTERS' referenced from X ...
Error: unresolved external '_HB_FUN_GETDEFAULTPRINTER' referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\XHBIMPRESS.OBJ
Error: Unresolved external '_HB_FUN_GETPRINTERS' referenced from X ...
- 07 Mar 2023 14:34
- Fórum: [x]Harbour
- Tópico: ERROR HBMK2
- Respostas: 18
- Exibições: 3002
ERROR HBMK2
... external "_HB_FUN_PRINTEREXISTS" referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\XHBIMPRESS.OBJ
Error: unresolved external '_HB_FUN_GETDEFAULTPRINTER' referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\XHBIMPRESS.OBJ
Error: Unresolved external '_HB_FUN_GETPRINTERS' referenced from X ...
Error: unresolved external '_HB_FUN_GETDEFAULTPRINTER' referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\XHBIMPRESS.OBJ
Error: Unresolved external '_HB_FUN_GETPRINTERS' referenced from X ...
- 07 Mar 2023 12:38
- Fórum: [x]Harbour
- Tópico: ERROR HBMK2
- Respostas: 18
- Exibições: 3002
ERROR HBMK2
... external '_HB_FUN_PRINTEREXISTS' referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\XHBIMPRESS.OBJ
Error: Unresolved external '_HB_FUN_GETDEFAULTPRINTER' referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\XHBIMPRESS.OBJ
Error: Unresolved external '_HB_FUN_GETPRINTERS' referenced from X ...
Error: Unresolved external '_HB_FUN_GETDEFAULTPRINTER' referenced from X:\XHARBOUR\CONTROLT\CT\CONTROLTSTD\OBJ\XHBIMPRESS.OBJ
Error: Unresolved external '_HB_FUN_GETPRINTERS' referenced from X ...
- 09 Abr 2022 05:42
- Fórum: CA-Clipper
- Tópico: ZEBRA TLP 2488 termica
- Respostas: 27
- Exibições: 37475
ZEBRA TLP 2488 termica
... alltrim(AAA)
Escolhe_impressora( cArquivo ) //Escolhe_impressora_VISUAL( cArquivo ) // teste visual em 01/10/2015
/*
cImpressora := GetDefaultPrinter() // Pego a Impressora Padrão, como expliquei acima já deixo a Argox como padrão
PrintFileRaw(cImpressora, cArquivo, [Teste]) // Jogo o ...
Escolhe_impressora( cArquivo ) //Escolhe_impressora_VISUAL( cArquivo ) // teste visual em 01/10/2015
/*
cImpressora := GetDefaultPrinter() // Pego a Impressora Padrão, como expliquei acima já deixo a Argox como padrão
PrintFileRaw(cImpressora, cArquivo, [Teste]) // Jogo o ...
- 15 Fev 2022 21:58
- Fórum: [x]Harbour
- Tópico: IMPRESSÃO DIRETA PORTA USB em xHARBOUR
- Respostas: 14
- Exibições: 4046
IMPRESSÃO DIRETA PORTA USB em xHARBOUR
... MATRICIAL MODO DRAFT
*-------------------------------*
local TELA_ANT
save screen to TELA_ANT
ARQ_TXT := (p_arquivo) + ".PRN"
cPrint:= GetDefaultPrinter() // pega impressora padrÆo
PrintFileRaw(cPrint,ARQ_TXT)
fclose(ARQ_TXT)
erase (p_arquivo) + ".PRN"
restore screen from TELA_ANT ...
*-------------------------------*
local TELA_ANT
save screen to TELA_ANT
ARQ_TXT := (p_arquivo) + ".PRN"
cPrint:= GetDefaultPrinter() // pega impressora padrÆo
PrintFileRaw(cPrint,ARQ_TXT)
fclose(ARQ_TXT)
erase (p_arquivo) + ".PRN"
restore screen from TELA_ANT ...
- 24 Jun 2021 03:43
- Fórum: CA-Clipper
- Tópico: ENVIAR COMANDO ESC NO TEXTO
- Respostas: 2
- Exibições: 3540
ENVIAR COMANDO ESC NO TEXTO
... e funciona normal.
Se puder, teste essa função (em Harbour):
Func CortaPapel()
Local cMsg
If !File( "CortaPapel.Cfg" )
cMsg := ""
cMsg += Chr(29)+"V"+Chr(66)+Chr(0)
hb_MemoWrit( "CortaPapel.Cfg" )
Endi
win_PrintFileRaw( GetDefaultPrinter(), "CortaPapel.Cfg", "Acionar Guilhotina" )
Return Nil
Se puder, teste essa função (em Harbour):
Func CortaPapel()
Local cMsg
If !File( "CortaPapel.Cfg" )
cMsg := ""
cMsg += Chr(29)+"V"+Chr(66)+Chr(0)
hb_MemoWrit( "CortaPapel.Cfg" )
Endi
win_PrintFileRaw( GetDefaultPrinter(), "CortaPapel.Cfg", "Acionar Guilhotina" )
Return Nil
- 21 Abr 2021 18:59
- Fórum: [x]Harbour
- Tópico: Create Error..impressão.
- Respostas: 25
- Exibições: 4651
Create Error..impressão.
Function Main()
LOCAL cImpPadrao := GetDefaultPrinter()
SetMode(25,80)
cArq = "ARQIMP"
*
Imprime(cArq, cImpPadrao, "TESTANDO IMPRESSAO")
return nil
*----------------------------------*
Function Imprime(cArq,cPrint,cTit)
*----------------------------------*
Local oPrn, aPrn:=WIN_PRINTERLIST ...
LOCAL cImpPadrao := GetDefaultPrinter()
SetMode(25,80)
cArq = "ARQIMP"
*
Imprime(cArq, cImpPadrao, "TESTANDO IMPRESSAO")
return nil
*----------------------------------*
Function Imprime(cArq,cPrint,cTit)
*----------------------------------*
Local oPrn, aPrn:=WIN_PRINTERLIST ...
- 08 Abr 2021 15:41
- Fórum: [x]Harbour
- Tópico: impressão de PDF
- Respostas: 18
- Exibições: 4125
impressão de PDF
... assim
****************** Visualizar e Imprimir Arquivos PDF **************************
Procedure fVerPdf(cFilePdf)
Local cPrinter:= GetDefaultPrinter(), lCkVisual:= .T.
If _IsWindowDefined([frmAguarde])
If _IsControlDefined([Cb_Impressora], [frmAguarde])
cPrinter:= AllTrim(GetProperty ...
****************** Visualizar e Imprimir Arquivos PDF **************************
Procedure fVerPdf(cFilePdf)
Local cPrinter:= GetDefaultPrinter(), lCkVisual:= .T.
If _IsWindowDefined([frmAguarde])
If _IsControlDefined([Cb_Impressora], [frmAguarde])
cPrinter:= AllTrim(GetProperty ...
- 22 Fev 2021 11:47
- Fórum: [x]Harbour
- Tópico: Xls nativo - remover apóstrofo!
- Respostas: 15
- Exibições: 2947
Xls nativo - remover apóstrofo!
... 27) + CHR(33) + CHR(16) // Para Impresoras Epson
LOCAL OFF_GRANDE := CHR(27) + CHR(33) + CHR(01) // Para Impresoras Epson
LOCAL cPrinter := GetDefaultPrinter() // Seleciona la Impresora Por Defecto de Windows
//LOCAL CRLF := CHR(13) + CHR(10)
LOCAL cFileName := "TEXTO.PRN"
cTexto += "Esta es la ...
LOCAL OFF_GRANDE := CHR(27) + CHR(33) + CHR(01) // Para Impresoras Epson
LOCAL cPrinter := GetDefaultPrinter() // Seleciona la Impresora Por Defecto de Windows
//LOCAL CRLF := CHR(13) + CHR(10)
LOCAL cFileName := "TEXTO.PRN"
cTexto += "Esta es la ...
- 02 Set 2020 08:47
- Fórum: [x]Harbour
- Tópico: Criar executavel x86/64
- Respostas: 27
- Exibições: 4034
Criar executavel x86/64
... está no manual.
Compilei um primeiro programa q estava em xHarbour, tive vários problemas com nomes de funções q são diferente (getPrinter, getDefaultPrinter), mas achei as respostas aqui no forum e foi de boa, só que ao tentar rodar esse programa em uma máquina q é 32 bits, ele deu erro, falando ...
Compilei um primeiro programa q estava em xHarbour, tive vários problemas com nomes de funções q são diferente (getPrinter, getDefaultPrinter), mas achei as respostas aqui no forum e foi de boa, só que ao tentar rodar esse programa em uma máquina q é 32 bits, ele deu erro, falando ...
- 27 Abr 2020 12:39
- Fórum: [x]Harbour
- Tópico: Imprimir arquivo pdf -SOLUÇÃO ENCONTRADA
- Respostas: 1
- Exibições: 2773
Imprimir arquivo pdf -SOLUÇÃO ENCONTRADA
... leitor de pdf.
Usei o comando abaixo, mas não imprime. Envia para o spool de impressão, mas fisicamente não imprime.
WIN_PrintFileRaw(GetDefaultPrinter(), [boleto.pdf], "Impressao de Boletos")
Alguém poderia ajudar na solução.
Obrigado
Att.
Marcelo A. L. Carli
Marília/SP
Capital ...
Usei o comando abaixo, mas não imprime. Envia para o spool de impressão, mas fisicamente não imprime.
WIN_PrintFileRaw(GetDefaultPrinter(), [boleto.pdf], "Impressao de Boletos")
Alguém poderia ajudar na solução.
Obrigado
Att.
Marcelo A. L. Carli
Marília/SP
Capital ...