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

Barcode as Image

9 Answers 279 Views
Barcode
This is a migrated thread and some comments may be shown as answers.
Alex Smith
Top achievements
Rank 1
Alex Smith asked on 02 Nov 2012, 10:49 PM
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  

9 Answers, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 05 Nov 2012, 08:30 AM
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.
0
Neil
Top achievements
Rank 1
answered on 30 Nov 2012, 05:20 PM
In addition to saving it on disk will it be able to save to a stream?
0
Vasil
Telerik team
answered on 04 Dec 2012, 12:27 PM
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.
0
Arron
Top achievements
Rank 1
answered on 19 Apr 2013, 09:06 AM
hi, Alex
have you found any good solutions?
0
Vasil
Telerik team
answered on 19 Apr 2013, 12:58 PM
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.
0
Shawn
Top achievements
Rank 1
answered on 28 Apr 2013, 10:06 AM
Well, the barcode image generator is great, and I wonder do you know some barcoding SDK that can generate barcode in a picture?













0
Vasil
Telerik team
answered on 29 Apr 2013, 08:29 AM
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.
0
helouize
Top achievements
Rank 1
answered on 28 Apr 2017, 08:17 PM
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
0
Garo
Telerik team
answered on 03 May 2017, 09:00 AM
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.

 
Tags
Barcode
Asked by
Alex Smith
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Neil
Top achievements
Rank 1
Arron
Top achievements
Rank 1
Shawn
Top achievements
Rank 1
helouize
Top achievements
Rank 1
Garo
Telerik team
Share this question
or