USUÁRIO:      SENHA:        SALVAR LOGIN ?    Adicione o VBWEB na sua lista de favoritos   Fale conosco 

 

  Fórum

  Visual Basic
Voltar
Autor Assunto:  Impressão de Código de Barras DATAMAX M 4208
Jose Roberto
não registrado
Postada em 19/12/2006 11:19 hs   
Estou com um problema ao enviar o arquivo abaixo para uma impressora DATAMAX, instalada em um micro da rede como generico somente texto.
 
O texto enviado chega até a impressora(Pause na impressora), mas não imprime nada.
 
Printer.Print Chr$(0) + Chr$(0) + Chr$(2) + "L"
Printer.Print Chr$(2) + "m"
Printer.Print Chr$(2) + "M0280"
Printer.Print Chr$(2) + "c0480"
Printer.Print Chr$(2) + "O0279"
Printer.Print "D11" & Chr$(10)
Printer.Print ""
Printer.Print "121100000200175Teste de Impressao"
Printer.Print "112100900200070123"
Printer.Print "Q00001"
Printer.Print "E" & Chr$(10)
Printer.Print ""
Printer.Print Chr(2) + "L"
Printer.Print Chr(2) + "m"
Printer.Print Chr(2) + "M0280"
Printer.Print Chr(2) + "c0480"
Printer.Print Chr(2) + "O0279"
Printer.Print "D11" & Chr$(10)
Printer.Print ""
Printer.Print "121100000200175Barcode Printer"
Printer.Print "112100900200070456"
Printer.Print "Q00001"
Printer.Print "E" & Chr$(10)
Printer.EndDoc
 
Alguem tem alguma sugestão.
 
Grato.
     
kerplunk
Pontos: 2843 Pontos: 2843 Pontos: 2843
SÃO PAULO
SP - BRASIL
ENUNCIADA !
Postada em 20/12/2006 08:46 hs         
Isso aqui deve funcionar, testei aqui e funciona:
Open "lpt1" For Output As #1
Print Chr(2) & "c0000"
Print Chr(2) & "KI503"
Print Chr(2) & "O0220"
Print Chr(2) & "f220"
Print Chr(2) & "KW0372"
Print Chr(2) & "KI7"
Print Chr(2) & "V0"
Print Chr(2) & "L"
Print "H13"
Print "PC"
Print "A2"
Print "D11"
Print "191100601570030TESTE TESTE"
Print "^01"
Print "Q0001"
Print "E"
Close #1

   
Página(s): 1/1    


Seu Nome:

Seu eMail:

ALTERAR PARA MODO HTML
Mensagem:

[:)] = 
[:P] = 
[:(] = 
[;)] = 

HTML DESLIGADO

     
 VOLTAR

  



CyberWEB Network Ltda.    © Copyright 2000-2026   -   Todos os direitos reservados.
Powered by HostingZone - A melhor hospedagem para seu site
Topo da página