• HBZEBRA CODEBAR ITF-14

    From Anderson Cardoso@21:1/5 to All on Thu May 4 10:18:28 2023
    Does anybody use hbzebra to print brazilian bills barcode type ITF-14?

    hZebra := hb_zebra_create_itf( cCode, nFlags )

    If I use nFlags := HB_ZEBRA_FLAG_WIDE2_5 the barcode become giant and exceeds the sheet.

    My draw code is this:
    hb_zebra_draw( hZebra, {| x, y, w, h | hDC:FillRect(Int( x + .5 ), Int( y + .5 ),;
    Int( x + .5 ) + Int( w ), Int( y + .5 ) + Int( h ) + 1, HB_WIN_RGB_BLACK) },;
    nX, nY, nLineWidth * nZOOM, ((nLineHeight * _SCALE_) * nZOOM) * nALTURA )

    Where scale is 7.2 and nZoom and nAltura is 1. nAltura is used make barcode taller.
    I´m using win32prn()

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Patrick Mast@21:1/5 to Anderson Cardoso on Sat May 13 10:33:16 2023
    On Thursday, May 4, 2023 at 7:18:30 PM UTC+2, Anderson Cardoso wrote:
    Does anybody use hbzebra to print brazilian bills barcode type ITF-14?

    hZebra := hb_zebra_create_itf( cCode, nFlags )

    If I use nFlags := HB_ZEBRA_FLAG_WIDE2_5 the barcode become giant and exceeds the sheet.

    My draw code is this:
    hb_zebra_draw( hZebra, {| x, y, w, h | hDC:FillRect(Int( x + .5 ), Int( y + .5 ),;
    Int( x + .5 ) + Int( w ), Int( y + .5 ) + Int( h ) + 1, HB_WIN_RGB_BLACK) },;
    nX, nY, nLineWidth * nZOOM, ((nLineHeight * _SCALE_) * nZOOM) * nALTURA )

    Where scale is 7.2 and nZoom and nAltura is 1. nAltura is used make barcode taller.
    I´m using win32prn()

    Just FYI:
    Some online APIs to generate ITF-14 barcodes:

    1. **OnBarcode** ([Source 1](http://generator.onbarcode.com/online-itf14-barcode-generator.aspx)): OnBarcode provides an online ITF-14 barcode generation service. You can generate a barcode image by using the following URL format:

    ```
    http://generator.onbarcode.com/linear.aspx?TYPE=4&DATA=123456789
    ```

    Replace `123456789` with your GTIN-14 data.

    2. **Barcodekit.com** ([Source 3](https://thebarcodekit.com/barcode-generator-free-online-itf-14)): Barcodekit.com offers an ITF-14 barcode generator with various features, such as adjusting the barcode's shape, color, and text descriptor. You can input
    your GTIN-14 data, adjust the barcode parameters, and download the generated barcode in formats like SVG, PNG, JPEG, and WEBP.

    To generate a barcode using Barcodekit.com, follow these steps:
    - Enter your GTIN-14 data in the provided space
    - Adjust the barcode parameters and save them
    - Adjust the text alignment options for the barcode description
    - Click the download button to download the generated barcode

    Both of these options allow you to generate ITF-14 barcodes online. OnBarcode provides a more straightforward API, while Barcodekit.com offers more customization options. Choose the one that best suits your needs.

    😀

    Patrick

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)