ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Barcode doesn't work

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Barcode doesn't work

    Hey together,

    i'm new witch using barcode in ext.Printerfiles.

    I've coded the following:

    -------------
    Printerfile
    -------------
    A R AFPBARC TEXT('BARCODE AUSGEBEN')
    A TESTBARC 10A
    A POSITION(15.00 11.00)
    A BARCODE(CODE3OF9 2 *VRT *HRI +
    A (*WIDTH 0.100) (*RATIO 2))


    ------------
    CRTPRTF
    -----------
    CRTPRTF FILE(MYLIB/TESTAB)
    SRCFILE(MYLIB/QDDSSRC)
    DEVTYPE(*AFPDS)
    PAGESIZE(29.7 21.0 *UOM)
    BACKMGN(0.00 0.00)
    PAGRTT(0)
    REDUCE(*NONE)
    UOM(*CM)



    ILE-RPG
    ----------
    F testab O E PRINTER
    ....
    C eval testbarc = '987654/000'
    C write afpbarc




    My Printer is an HP4050N on normal ip-configuration on i5.

    It do not work, i can do what i want !!

    Can anybody help ??

    Thanks a lot !

    Peetluka
    Once there was a river, now there's a Stone !

  • #2
    Re: Barcode doesn't work

    Hey,
    it work's, i can't see the Barcode in the afpviewer, but on
    the paper it is printed.

    But how can i make the *HRI "smaller", i read, keyword FONT isn't allowed with barcode ?

    Thanks in advance !
    Peetluka
    Once there was a river, now there's a Stone !

    Comment


    • #3
      Re: Barcode doesn't work

      try reading this examples at bottom



      jamie
      All my answers were extracted from the "Big Dummy's Guide to the As400"
      and I take no responsibility for any of them.

      www.code400.com

      Comment


      • #4
        Re: Barcode doesn't work

        Hey,
        thanks for great Support.

        I've found the solution, but not on ibm's site !

        PeetLuka
        Once there was a river, now there's a Stone !

        Comment


        • #5
          Re: Barcode doesn't work

          do you want to post the solution so we can all see it please..

          jamie
          All my answers were extracted from the "Big Dummy's Guide to the As400"
          and I take no responsibility for any of them.

          www.code400.com

          Comment


          • #6
            Re: Barcode doesn't work

            Yes, sorry, i will:

            Here is the importent Notice:

            "The Human readable parameter determines whether the data contained inside the barcode is printed in addition to the barcode in human readable form either above or below the barcode. The default is *HRI, with the data printing below the barcode. The *HRITOP can be used to print the human readable data above the barcode, if desired. An OCR font is used to print the data, so if your users do not like the appearance, you can choose *NOHRI and add another line in the printer file to print the human readable characters."

            And here the link to the whole article:





            Peetluka
            Once there was a river, now there's a Stone !

            Comment


            • #7
              Re: Barcode doesn't work

              Human Readable Interpretation (HRI)

              Do I apply dashes or spaces to the National Stock Number on the bar code or Human Readable Interpretation (HRI), i.e. 5998-01-476-2024?
              No. The barcode and HRI that are applied should be the standard DoD symbology as described in ISO/IEC 16388.
              The HRI should be the exact interpretation of the bar code data and should not contain any spaces or dashes.

              Where are the HRI markings applied?
              The preferred location for the HRI is below the bar code markings,
              while the optional location is above the bar code markings.
              [Reference: MIL-STD-129]

              Something you should known ! Embed unprintable characters ( like a tab ) in a Code 128 barcode
              The printer file is set to replace unprintable characters with a space. Once changed that, it worked.
              Code:
              CHGPRTF FILE(MyReport) RPLUNPRT(*NO)
              Do I have found a "unknown" PDF on AFP ? Yes, I do !

              Covering a lot of known and unknown topics about AFP

              Jamie, you need to add this info to the Code400.com site !

              Comment

              Working...
              X