Barcode rendering

5 posts, 0 answers
  1. heba
    heba avatar
    8 posts
    Member since:
    Sep 2013

    Posted 26 Mar 2014 Link to this post

    Hi,
    I want to build barcode control using c# not in HTML , I used that code but I have problem That barcode appear as text like attached photo
    how can I solve this problem 
    Thanks ..
                            RadBarcode mybarcode = new RadBarcode();
                            mybarcode.ID = "barcode1";
                            mybarcode.Text = "123";
                            mybarcode.Type = BarcodeType.QRCode;
                            StringBuilder sbHtmlContent = new StringBuilder();
                            StringWriter objStringWriter = new StringWriter(sbHtmlContent);
                            HtmlTextWriter objHtmlTextWriter = new HtmlTextWriter(objStringWriter);
                            mybarcode.RenderControl(objHtmlTextWriter);
                            var strTextBoxHtml = sbHtmlContent.ToString();
                            Literal1.Text += strTextBoxHtml;
  2. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 31 Mar 2014 Link to this post

    Hi,

    I have prepared a sample project that illustrates how you could setup RadBarcode in the code-behind and add it to the page. You would find the sample attached.

    Try using similar approach and you should be able to achieve the functionality you are looking for.


    Regards,
    Viktor Tachev
    Telerik
     

    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. East
    East avatar
    2 posts
    Member since:
    Jun 2015

    Posted 02 Jul 2015 in reply to Viktor Tachev Link to this post

    You can directly add barcode control with c# to you project, I remeber telerik has this feature.
  5. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 03 Jul 2015 Link to this post

    Hi,

    Yes, it can be saved as BinaryImage. See the last example in this help article.
    http://docs.telerik.com/devtools/aspnet-ajax/controls/barcode/outputtype#radbinaryimage-and-radbarcode


    Regards,
    Vasil
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Long
    Long avatar
    3 posts
    Member since:
    Mar 2015

    Posted 26 Aug 2015 Link to this post

    You can directly add barcode control with c# to you project, I remeber telerik has this feature.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017