ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

How to Print Barcode using RPGLE, RLU

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

  • How to Print Barcode using RPGLE, RLU

    I like to print barcode from iSeries on inforprint printer using rpgle, rlu. maximum barcode size should be one inch. is there way to i can do it?

    Regards
    Salman

  • #2
    Re: How to Print Barcode using RPGLE, RLU

    Add the barcode statement to your DDS.
    Code:
    H2BARLITM     25        70BARCODE(CODE3OF9 2  *NOHRI         +
                                                 (*WIDTH .007)   +
                                                 (*RATIO 3.00) )
    When you compile your print file, specify DEVTYPE(*AFPDS).

    Terry

    Comment


    • #3
      Re: How to Print Barcode using RPGLE, RLU

      yep, the printer has to support *AFP. You complie the file as *IPDS, but the printer has to support this too.

      And just because your nice windows printer will print bar codes and pretty pictures, does not mean it supports *AFP or *IPDS.
      Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

      Comment


      • #4
        Re: How to Print Barcode using RPGLE, RLU

        I agreed with above replies but width 0.007 is minimum barcode printsize that provided by the system my using that width my barcode printing in 2 Inches. and i like to print my barcode in 1 Inch. mean i need to reduce it more 50%

        if you know any printer setting in print InfoPrint 6700, or any changes in rlu, rpg etc.
        Looking forward for an early reply

        Regards

        Comment


        • #5
          Re: How to Print Barcode using RPGLE, RLU

          Originally posted by msalman_ali View Post
          I agreed with above replies but width 0.007 is minimum barcode printsize that provided by the system my using that width my barcode printing in 2 Inches. and i like to print my barcode in 1 Inch. mean i need to reduce it more 50%
          From the manual:
          Code:
          Note:	The overall barcode width is dependent on:
          
              * Ratio or width parameter in user DDS.
              * Actual customer data in the barcode.
              * Limitations of printer hardware, such as PEL density, pins and so on.
          Maybe you can try adjusting the ratio. The manual is located here:



          Terry

          Comment


          • #6
            Re: How to Print Barcode using RPGLE, RLU

            PHP Code:
             BARCODE(bar-code-ID [height] [[*HRZ | *VRT
              [*
            HRI | *HRITOP | *NOHRI] [*AST | *NOAST
              [
            check-digit] [unit-width
              [
            wide/narrow-ratio]]) 

            Im with terry mess with this

            PHP Code:
            H2BARLITM 25 70BARCODE(CODE3OF9 2 *NOHRI +
            (*
            WIDTH .007) +
            (*
            RATIO 3.00) ) 
            ---------



            Try *RATIO 2.00

            PHP Code:
            A            BAR1           6          BARCODE(CODE3OF9 *NOHRI +   
            A                                      (*WIDTH 0.010) (*RATIO 2)) 
            more stuff
            PHP Code:
            BARCODE(CODE3OF9 2 *NOHRI (*RATIO 3-) X'01'

            BARCODE(CODE3OF9 *NOHRI (*RATIO 2) - X'01'

            BARCODE(CODE3OF9 *NOHRI (*RATIO 2) - X'01'

            BARCODE(CODE3OF9 *HRI (*RATIO 2X'- 01'

            BARCODE(CODE3OF9 2 *NOHRI (*RATIO 3X'01'

            BARCODE(CODE3OF9 2 *NOHRI (*WIDTH 0.007) (*RATIO 2X'01'

            BARCODE(CODE3OF9 2 *NOHRI (*WIDTH 0.007) (*RATIO 2X'01'

            BARCODE(CODE3OF9 2 *HRI (*WIDTH 0.007) (*RATIO 2X'01'

            No matter what anyone says ... to be a good programmer you have to
            be willing to experiment. (test -whatever)
            Look at the values going in and attempt to adjust them to see what happens.

            jamie



            see what ya get
            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


            • #7
              Re: How to Print Barcode using RPGLE, RLU

              You could just do what we do in our shop, use 3rd party software such as LSDForms in which you just define from position to position on line xx, and will reformat it for you whenever it prints. You can also change the font, size, etc. Never have to worry about programming for these thiniggly little things again.
              Regards

              Kit
              http://www.ecofitonline.com
              DeskfIT - ChangefIT - XrefIT
              ___________________________________
              There are only 3 kinds of people -
              Those that can count and those that can't.

              Comment


              • #8
                Re: How to Print Barcode using RPGLE, RLU

                thanks for all of you to support me by the way i resolved that issue using
                CODE128
                BARCODE(CODE128 1 *HRZ *NOHRI (*WIDTH 0.007))

                if somebody knows any font then smaller then it then please let me know. i will apprecite him.

                Regards
                Salman

                Comment


                • #9
                  Hey all,
                  i need a height value for this barcode in dds....
                  A BARCODE(INTERL2OF5 6 *NOHRI)
                  But i'm too stupid :=)
                  How must i code for example a height of 3 or 4 lines ????
                  Can anybode help ??
                  Thx. in Advanced !
                  Peet
                  Once there was a river, now there's a Stone !

                  Comment


                  • #10
                    Sorry...bad day...i see the "6" is the height !!!
                    Thx.
                    Once there was a river, now there's a Stone !

                    Comment

                    Working...
                    X