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

Barcode rendering

4 Answers 56 Views
Barcode
This is a migrated thread and some comments may be shown as answers.
heba
Top achievements
Rank 1
heba asked on 26 Mar 2014, 03:38 PM
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;

4 Answers, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 31 Mar 2014, 12:45 PM
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.

 
0
East
Top achievements
Rank 1
answered on 03 Jul 2015, 01:48 AM
You can directly add barcode control with c# to you project, I remeber telerik has this feature.
0
Vasil
Telerik team
answered on 03 Jul 2015, 08:45 AM
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
0
Long
Top achievements
Rank 1
answered on 27 Aug 2015, 01:13 AM
You can directly add barcode control with c# to you project, I remeber telerik has this feature.
Tags
Barcode
Asked by
heba
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
East
Top achievements
Rank 1
Vasil
Telerik team
Long
Top achievements
Rank 1
Share this question
or