text position in barcode

2 posts, 0 answers
  1. Juan
    Juan avatar
    20 posts
    Member since:
    Jan 2012

    Posted 05 Oct 2012 Link to this post

    hi!!

    i have this code in my aspx:

    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
                <asp:Table runat="server" CellPadding="0" CellSpacing="0" HorizontalAlign="Center">
                    <asp:TableRow runat="server">
                        <asp:TableCell runat="server">
                            <asp:Table runat="server" CellPadding="0" CellSpacing="0">
                                <asp:TableRow runat="server">
                                    <asp:TableCell runat="server">
                                        <telerik:RadBarcode runat="server"
                                                            ID="radcodigos"
                                                            Width="100"
                                                            Height="30"
                                                            Font-Size="10px"
                                                            ShowChecksum="false"
                                                            RenderChecksum="false"
                                                            ShowText="true"></telerik:RadBarcode>

                                    </asp:TableCell>
                                </asp:TableRow>
                            </asp:Table>
                        </asp:TableCell>
                    </asp:TableRow>
                </asp:Table>      
            </telerik:RadAjaxPanel>
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" BackgroundPosition="None">
            </telerik:RadAjaxLoadingPanel>


    this barcode i'm load in the follow function:

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            If Not IsPostBack Then
                lbltipocodigoID.Text = Request.Params("tipocodigoID")
                lblcodigo.Text = Request.Params("codigo")

                radcodigos.Text = Val(lblcodigo.Text)

                Select Case lbltipocodigoID.Text
                    Case "1"
                        radcodigos.Type = BarcodeType.EAN13
                    Case "2"
                        radcodigos.Type = BarcodeType.EAN8
                End Select
            End If
        End Sub


    in the file "img_barcode.png" you can see my problem better.
    plase i need implements this barcode for my aplication. thanks.
  2. Kostadin
    Admin
    Kostadin avatar
    1711 posts

    Posted 10 Oct 2012 Link to this post

    Hello Juan,

    A right quiet zone indicator (>) is used to indicate Quiet Zones that are necessary for barcode scanners to work properly. To configure the position of the digits you could either reduce the height size or reduce the ShortLinesLengthPercentage in percentage. More information about RadBarcode properties could be found here and about different barcode types here.

    All the best,
    Kostadin
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top