Convert Image BMP Monochrome to Zebra ASCII Hex representation (ZPL code)
English translation, in the second part. Screens of the operating system could not translate.
Portuguese Version:
Esse blog compartilha uma experiência legal.
1. Download ZebraDesigner v2.2.3.4271 (instale sem nenhum custo).
Clique em Fechar
Menu: File->Print…

Clique em Aplicar
5. ZebraDesigner- Importe a imagem
6.
Imprima para ArquivoMenu: File->Print…

Clique em Print

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.
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.
1. Download ZebraDesigner v2.2.3.4271 (install at no cost).
2. Save the image in Bitmap Monochrome in MSPAINT Windows.
4. Configure Printer to File
Properties of the printer in the Windows Control Panel
Click add port

Click Print

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.
9. Reference:
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.
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.
Be the first to leave a comment
You must be Logged on to comment or reply to a post.