Barcode as Image

8 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
    1547 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. UI for ASP.NET Ajax is Ready for VS 2017
  4. 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?
  5. Vasil
    Admin
    Vasil avatar
    1547 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.
  6. 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?
  7. Vasil
    Admin
    Vasil avatar
    1547 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.
  8. 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?













  9. Vasil
    Admin
    Vasil avatar
    1547 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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017