English translation, in the second part. Screens of the operating system could not translate.
Esse blog compartilha uma experiência legal.
2. Salve a imagem em Bitmap monocromático no MSPAINT Windows.
3. Resultado Esperado
4. Configure a impressão para Arquivo.
Propriedades da impressora no Painel de Controle do Windows
Clique em Adicionar Porta
Clique em Nova Porta
Escolha um caminho para o arquivo TXT
Clique em Fechar
Clique em Aplicar
5. ZebraDesigner- Importe a imagem
6. Imprima para Arquivo Menu: File->Print...
Clique em Print
7.
Abra o arquivo gerado output.txt
Comandos ~DG (Download Graphics) e XG (Recall Image) foram gerados.
8. Código ABAP utilizado na ocasião apenas para teste:
Feito upload do código OUTPUT.TXT na transação SO10 (Standard Text) com o nome ZLOGO_PRINT, passo não mostrado nesse blog. REPORT zebra.
PARAMETERS: p_print TYPE itcpp-tddest DEFAULT 'LOCL'.
DATA: t_lines TYPE STANDARD TABLE OF tline.
FIELD-SYMBOLS: <f_lines> LIKE LINE OF t_lines.
START-OF-SELECTION.
NEW-PAGE PRINT OFF.
NEW-PAGE
NO-TITLE
NO-HEADING
LINE-SIZE 90
LINE-COUNT 665
PRINT ON NO DIALOG
IMMEDIATELY 'X'
KEEP IN SPOOL ' '
NEW LIST IDENTIFICATION ' '
DESTINATION p_print
COPIES 1.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = 'ST'
language = 'P'
name = 'ZLOGO_PRINT'
object = 'TEXT'
TABLES
lines = t_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
IF sy-subrc = 0.
LOOP AT t_lines ASSIGNING <f_lines>.
WRITE / <f_lines>-tdline.
ENDLOOP.
ENDIF.
NEW-PAGE PRINT OFF.
9. Referência:
10. Link Adicionais:
11. Agradecimentos:
Henrique Guedes: trouxe a oportunidade de trabalhar com as Logos e ajudou nos testes.
Marllon Antunes : Instalou a impressora ZM400 para testes reais.
Marcio Gardezani: forneceu a valiosa dica do ZTOOLS/MSPAINT e posteriormente comentou sobre a opção de imprimir TXT pelo ZebraDesigner.
Sávio Barbosa : ajudou nos casos reais no ambiente produtivo.
.
English Version:
This blog shares a cool experience.
2. Save the image in Bitmap Monochrome in MSPAINT Windows.
3. Expected Result
4. Configure Printer to File
Properties of the printer in the Windows Control Panel
Click add port
Click new port
Choose a path to the TXT file
Click Close
Click Apply
5. ZebraDesigner- Import the image
6. Print to File
Menu: File->Print...
Click Print
7. Open generated file output.txt
Commands ~DG (Download Graphics) e XG (Recall Image) were generated.
8. ABAP code used on occasion just to test:
Uploaded code OUTPUT.TXT in transaction SO10 (Standard Text) with name ZLOGO_PRINT, step not shown in this blog. REPORT zebra.
PARAMETERS: p_print TYPE itcpp-tddest DEFAULT 'LOCL'.
DATA: t_lines TYPE STANDARD TABLE OF tline.
FIELD-SYMBOLS: <f_lines> LIKE LINE OF t_lines.
START-OF-SELECTION.
NEW-PAGE PRINT OFF.
NEW-PAGE
NO-TITLE
NO-HEADING
LINE-SIZE 90
LINE-COUNT 665
PRINT ON NO DIALOG
IMMEDIATELY 'X'
KEEP IN SPOOL ' '
NEW LIST IDENTIFICATION ' '
DESTINATION p_print
COPIES 1.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = 'ST'
language = 'P'
name = 'ZLOGO_PRINT'
object = 'TEXT'
TABLES
lines = t_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
IF sy-subrc = 0.
LOOP AT t_lines ASSIGNING <f_lines>.
WRITE / <f_lines>-tdline.
ENDLOOP.
ENDIF.
NEW-PAGE PRINT OFF.
10. Additional Links:
11. Thanks:
Henrique Guedes: brought the opportunity to work with the Logos and helped in testing.
Marllon Antunes : Installed the printer ZM400 for real testing.
Marcio Gardezani: provided a valuable tip from ZTOOLS/MSPAINT and later commented on the option to print TXT by ZebraDesigner.
Sávio Barbosa :
helped in cases in real production environment.