We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Barcode in SfSpreadsheet

Thread ID:

Created:

Updated:

Platform:

Replies:

126095 Sep 23,2016 05:16 AM Oct 27,2016 05:01 AM WPF 5
loading
Tags: SfBarcode
Berezkin Gena
Asked On September 23, 2016 05:16 AM

How can I add a barcode in SfSpreadsheet?

Thirumurugan Loganathan [Syncfusion]
Replied On September 26, 2016 09:44 AM

Hi Berezkin, 
  
You can add the barcode in SfSpreadsheet by using cell customization support of the SfSpreadsheet. You need to derive the SpreadsheetVirtualizingCellRendererBase class of the Spreadsheet for achieve the cell customization. Please find the below UG reference link and sample link for more clarification. 
  
  
Regards, 
Thirumurugan 


Berezkin Gena
Replied On September 27, 2016 08:27 AM

This example doesn't work. I get empty cell in spreadsheet.

Kanimozhi Bharathi [Syncfusion]
Replied On September 28, 2016 07:35 AM

Hi Berezkin,   
  
We were unable to reproduce the issue with our sample. The Barcode control loads fine in the cell of SfSpreadsheet in current version(14.2.0.28). Hence could you please update us your product version details and the sample which reproduces the issue to check further and provide an appropriate solution.   
  
Regards   
Kanimozhi B   


Berezkin Gena
Replied On October 26, 2016 07:00 AM

How can I get a image using the SfBarcode?

Gayathri Ramalingam [Syncfusion]
Replied On October 27, 2016 05:01 AM

Hi Berezkin,  
Thank you for your update. 
We have already implemented the method called ToImage() and ToImage(Size) for SfBarcode. You can use this method to convert the barcode as image. 
Please find the below code snippet, 
QRBarcode barcode = new QRBarcode(); 
System.Windows.Media.Imaging.BitmapSource image = barcode.ToImage(); 

Please find the sample here, 
 
Please let us know if you need any further assistance.  
 
With Regards, 
Gayathri R 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;