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

Problems scanning RadBarcode39

3 Answers 105 Views
BarCode
This is a migrated thread and some comments may be shown as answers.
Aniruddha
Top achievements
Rank 1
Aniruddha asked on 15 May 2013, 10:28 PM
I am using RadBarcode39 in my Windows Phone 8 App but it is not being scanned correctly. So was wondering if there are recommendations for Height and Width properties to get it to scan properly. Also the bars don't appear to match a printed paper bar code. Below is what I am doing. Should I be doing something more/different ?

            <telerikDataViz:RadBarcode39 Name="BarCodeControl"
                                         Height="120"
                                         Width="425"
                                         Margin="5"
                                         VerticalAlignment="Center"
                                         HorizontalAlignment="Center"
                                         Text="90321331" 
                                         ShowChecksum="False"/>


3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 20 May 2013, 06:07 AM
Hello,

The given dimensions should be enough to render the code properly.
Can you let me know what the printed/rendered versions differences are.

Greetings,
Yavor
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Aniruddha
Top achievements
Rank 1
answered on 21 May 2013, 09:18 PM
Thanks Yavor for your reply. I can't spot the visual differences and the scanner is able to scan the bar code on the phone, but the outcome is different compared to scanning the paper bar code. The paper bar code shows the balance as expected where as the phone one says invalid.

I tried with grey and white backgrounds using borders. Does the margin make a difference ?

        <Border Grid.Row="3" Background="White" VerticalAlignment="Top">
            <telerikDataViz:RadBarcode39 Name="BarCodeControl"
                                         Height="120"
                                         Width="425"
                                         Margin="5"
                                         VerticalAlignment="Center"
                                         HorizontalAlignment="Center"
                                         Text="90321330"
                                         ShowChecksum="False"/>
        </Border>

Thanks,
Ani
0
Aniruddha
Top achievements
Rank 1
answered on 22 May 2013, 09:59 PM
I used the following Dimensions and also set RenderCheckSum = "False" and that fixed the issue.

<Border Grid.Row="5" Background="White" VerticalAlignment="Top" >

            <telerikDataViz:RadBarcode39 Name="BarCodeControl1"

                                         Height="100"

                                         Width="350"

                                         Margin="45"

                                         VerticalAlignment="Center"

                                         HorizontalAlignment="Center"

                                         Text="90321330"

                                         RenderChecksum="False"

                                         ShowChecksum="False"

                                          />

        </Border>

Tags
BarCode
Asked by
Aniruddha
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Aniruddha
Top achievements
Rank 1
Share this question
or