Barcode as Image

10 posts, 0 answers
  1. Alex Smith
    Alex Smith avatar
    17 posts
    Member since:
    Dec 2009

    Posted 02 Nov 2012 Link to this post

    Love the new barcode control.  QR is great.  

    I'm trying to setup a generic barcode generator that can be used through out my app (http://whatever/barcode.aspx?value=xyz) and have it generate a PNG image.  I know in the Q2 release this was not possible since PNG was not supported.  However now that it is, I would love a few suggestions on how I could render the barcode image in code-behind (C#) and then just stream it out to the browser.  

    Basically I just need to be able to get to the PNG image for the barcode from the control.  

    Thanks,
    Alex  
  2. Vasil
    Admin
    Vasil avatar
    1603 posts

    Posted 05 Nov 2012 Link to this post

    Hello Alex,

    Currently it is not possible, but the functionality that you describe is scheduled for the next release. It will be possible in Q1 2013 to access the image as "System.Drawing.Image" and to save it on your server.

    Kind regards,
    Vasil
    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. Neil
    Neil avatar
    34 posts
    Member since:
    Sep 2012

    Posted 30 Nov 2012 Link to this post

    In addition to saving it on disk will it be able to save to a stream?
  4. Vasil
    Admin
    Vasil avatar
    1603 posts

    Posted 04 Dec 2012 Link to this post

    Hi Neil,

    Yes, once you have the rendered image as System.Drawing.Image you will be able to use it as you want, including passing it into stream.

    Regards,
    Vasil
    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.
  5. Arron
    Arron avatar
    22 posts
    Member since:
    Apr 2013

    Posted 19 Apr 2013 Link to this post

    hi, Alex
    have you found any good solutions?
  6. Vasil
    Admin
    Vasil avatar
    1603 posts

    Posted 19 Apr 2013 Link to this post

    Hello Arron,

    I have removed the links from your post, since we do not encourage advertising other products in our forums.
    Saving into stream is already possible from our last release, check this help topic for an working example:
    http://www.telerik.com/help/aspnet-ajax/barcode-outputtype.html

    Greetings,
    Vasil
    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.
  7. Shawn
    Shawn avatar
    1 posts
    Member since:
    Apr 2013

    Posted 28 Apr 2013 Link to this post

    Well, the barcode image generator is great, and I wonder do you know some barcoding SDK that can generate barcode in a picture?













  8. Vasil
    Admin
    Vasil avatar
    1603 posts

    Posted 29 Apr 2013 Link to this post

    Hi Shawn,

    If you want to save the generated Barcode in some image format you can use the Save method of the Image class, once you use the OutputType="EmbeddedPNG" as shown in the help topic that I have posted earlier. Check this article about saving an Image:
    http://msdn.microsoft.com/en-us/library/system.drawing.image.save.aspx

    All the best,
    Vasil
    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.
  9. helouize
    helouize avatar
    1 posts
    Member since:
    Jun 2014

    Posted 28 Apr Link to this post

    I am new for appBuilder I start with the document I found one sample barcode scanner app I tried with that its work fine but when I tried scan pdf147 does not what is wrong Please suggest.
    http://docs.telerik.com/platform/samples/Sample-Barcode-Scanner/#test-the-sample
  10. Garo
    Admin
    Garo avatar
    118 posts

    Posted 03 May Link to this post

    Hello Helouize,

    Do you mean PDF417? To scan such barcode, you need to pass it in the formats option of the scanner as explained here (the link also contains a list of supported barcode types). This option is not added in the Barcode Scanner Sample and you should add it manually. 

    Regards,
    Garo
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top