Jump to content
Fivewin Brasil

Copy to USB? Argox/Zebra


sambomb

Recommended Posts

Olá, eu estou com problemas para gerar as etiquetas nas impressoras supracitadas quando tento gerar pela USB, para imprimir pela paralela eu simplesmente crio o arquivo eu uso um Copy cArquivo to LPT1 e gera sem problemas, qual o caminho devo seguir para poder gerar na USB?

sambomb.jpg

RCA Sistemas - Itaocara - RJ

Link to comment
Share on other sites

Olá, eu estou com problemas para gerar as etiquetas nas impressoras supracitadas quando tento gerar pela USB, para imprimir pela paralela eu simplesmente crio o arquivo eu uso um Copy cArquivo to LPT1 e gera sem problemas, qual o caminho devo seguir para poder gerar na USB?

sambomb.jpg

RCA Sistemas - Itaocara - RJ

Link to comment
Share on other sites

Samir, veja o exemplo abaixo, totalmente funcional:

function etiq_zebra()

private CRLF

CRLF:=chr(13)+chr(10)

clinhal1c1 := "IMPRESSORA ZEBRA 2844"

clinhal2c1 := [R$ ]+transform(850.00,[@E 999999.99])

HANDLE:=FCREATE("\tmp\etiqueta.lbl",0)

// LIMPA O BUFFER DA IMPRESSORA

etiq_txt= [N]+CRLF

// TEMPERATURA DA CABEÇA DE IMPRESSÃO / ACIMA DE 15 DANIFICA

etiq_txt= etiq_txt +[D7]+CRLF

// VELOCIDADE

etiq_txt= etiq_txt +[s2]+CRLF

// ESPAÇO

etiq_txt= etiq_txt +[Q100,20]+CRLF

// DESCRIÇÃO

etiq_txt= etiq_txt +[A000,28,0,3,1,1,N,"]+clinhal1c1+["]+CRLF

// PREÇO

etiq_txt= etiq_txt +[A250,95,0,5,1,1,N,"]+clinhal2c1+["]+CRLF

// IMPRIME A ETIQUETA

etiq_txt= etiq_txt +[P1] + chr(10)

Fwrite(HANDLE,etiq_txt)

Fclose(HANDLE)

nPrn := PrintFileRaw(prngetname(),"\tmp\etiqueta.lbl", "Impressão Etiquetas Zebra tlp2844")

return nil

Paulo Ramalho Alves da Silva

Analista de TI

Mister Abaco Software Ltda

Lagoa Santa / MG

Link to comment
Share on other sites

Samir, não sei se é o caso mas.

Tem algns equipamentos que mesmo sendo USB atribuem uma porta com, veja se não é o caso.

Quanto a fazer pela fast, realmente é muito prático mas a impressão fica lerda, se for grandes volumes o cliente pode reclamar.

logofw.png

Dimob / SPED(pis/cofins)

..:: Este post é uma opnião pessoal, NAO DEVE SER ENCARADO COMO VERDADE ABSOLUTA ::..

Link to comment
Share on other sites

boa noite Cleiton...

Aproveitando o post, é que imprimo etiqueta na Zebra TLP 2844 com PAGE SCRIPT e imprime direitinho só o CODIGO DE BARRAS (code 128) que imprime mas não lê no leitor, parece que algumas linhas não imprime na impressora,pois quando mando imprimir a mesma etiqueta em uma HP laser o código sai diferente... VOCÊ FAZ IDÉIA DO QUE PODE SER?id=blue>

citação:

Samir, aqui estou utilizando fastreport sem problemas. Basta instalar o software da impressora e selecioná-la no momento da impressão.

Cleiton

FWH906+xHarbour, MySql, WorkShop, PellesC, FW20d+Clipper5.2+Clip53b

FotoCleitonForun.jpg


id=quote>id=quote>

Perfil.jpg

Link to comment
Share on other sites

A parte de criação do arquivo eu já tenho pronta e funciona perfeitamente na porta LPT1, o problema está apenas na hora de jogar para a impressora quando ela está na USB ao invés da LPT1.

Me indicaram o uso do PrintFileRaw com o GetPrinter vou verificar e dou um retorno

sambomb.jpg

RCA Sistemas - Itaocara - RJ

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...