This is a migrated thread and some comments may be shown as answers.

Barcode (Code128) Display Vertical

1 Answer 445 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Greg Duffield
Top achievements
Rank 1
Greg Duffield asked on 26 Feb 2009, 10:55 AM
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.

Thanks

Greg

1 Answer, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 26 Feb 2009, 02:55 PM
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.
Tags
General Discussions
Asked by
Greg Duffield
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Share this question
or