Barcode (Code128) Display Vertical

2 posts, 0 answers
  1. Greg Duffield
    Greg Duffield avatar
    38 posts
    Member since:
    Feb 2006

    Posted 26 Feb 2009 Link to this post

    I am currently evaluating your reporting tools with a view of moving from Data Dynamics and I have come across a problem. This could be down to something that I am doing though, so your helo would be appreciated.

    I have generated a report with 3 barcodes all in Code 128, they all hold 22 Characters of data as this what I need to store on my labels. However, I do not seem to be able to resize the barcode without making it unreadable by our barcode reader.

    I have added a barcode horizontally and this is showing a size of 14.47cm x 2.07cm If i make a copy of this and change the height and width and then rotate the text by 270 degrees this barcode works as expected as well, so both of these can be read by the various readers and software readers we have tested.

    However, we do not have that amount of space on the label (we only have 9cm in height) and if I resize any of the barcodes they become unreadable by the barcode readers.

    Any help/advice would be much appreciated.


  2. Ivan
    Ivan avatar
    111 posts

    Posted 26 Feb 2009 Link to this post

    Hello Greg Duffield,

    Barcode readers have a maximal resolution at which they can operate properly. You should check the specification of your barcode reader. If the individual bars and spaces of your barcodes are too narrow, the barcode reader might not be able to read them correctly.

    If you have set the Stretch property of the Barcode report item to true, and the size of the barcode is too small, the bars and spaces will be shrinked accordingly, in order to make them fit in the given space, thus making them too narrow to be read by the scanner. Try setting the Stretch property to false, and adjust the Module property instead. The value of the Module property determines the thickness of the narrowest bar or space within the barcode, so it cannot go outside the maximal resolution supported by the barcode scanner. Then you can adjust the size of the Barcode report item manually in the Report Designer. Set the Value property to some string that is long enough (i.e. 22 characters). If the barcode cannot fit the given area, an error message will be displayed. Adjust the size of the report item in the designer, so that the actual barcode reappears again.

    On a side note: what export format are you using for printing? In some formats the barcodes are rendered as raster bitmaps (due to limitations of the particular format), which sometimes might not produce sufficient quality for printing. Probably the best export format for printing barcodes is PDF, because it uses vector graphics to render them, that scales well with the printing resolution.

    Sincerely yours,

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft R3 2016 release webinar banner
Back to Top