I have an application in WPF.
It produces labels based on a sql query.
Everything is working fine except for the barcode. It will not print out anything if the value is set to a value from the Fields listing. If I hard code the value to be equal to say "123" we get a barcode. If I use the value that works fine in a text box above it, say Fields.Barcode it prints nothing.
Is this a known bug with the Telerik reporitng and barcodes ?
Should we be using binding ?
At this point if it does not work we wil be going to try to recreate the label using windows reporting tools and a barcode font. Wich will be disappointing.
4 Answers, 1 is accepted
I was having the same issue today.
Thanks to this forum, I resolved it by attaching an ItemDataBinding event handler on the barcode as follows:
sender, EventArgs e)
Telerik.Reporting.Processing.Barcode bcode = (Telerik.Reporting.Processing.Barcode)sender;
bcode .Value = ((Telerik.Reporting.Barcode)bcode.ItemDefinition).Value;
I added the following to my code in the report :
in the report designer I added the ItemDatabinding event
Still prints out blank, even though the text box just below it with the same value is printing out fine.
I exported the labels from the wpf viewer and now I see in the PDF an error about the barcode being too long at 24 characters? Is there a maximum size limit in barcodes ?
I included a jpg image of the pdf and a jpg image of the label design.
I can get a barcode to display using a text box and a true type font that we currently use, but when it prints it prints from the view it prints the barcode as wingdings as opposed to the barcode font.
When you set the Barcode's Stretch property to true the barcode will be stretched to fill the entire area of the Barcode report item. The widths of the bars and spaces are adjusted accordingly. This may lead to a barcode that has too many elements that can't be printed correctly due to a low resolution printer or/and scanner. Thus our suggestion is to try increase the Barcode item's size.
For the barcode font printed as wingdings our suggestion is to make sure you have the barcode font on the local computer.
Additionally you can check out the Invoice demo report that came with your installation of Telerik Reporting for an example that uses the Barcode item with data from the AdventureWorks database.
the Telerik team