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

Save QR Code as Image

8 Answers 172 Views
BarCode
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 31 Jul 2012, 11:08 PM
Hi,
    Is there any way to save a RadBarcodeQR to binary or image? Then I could use it on a report until telerik reports support QR codes.

Thanks

8 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 02 Aug 2012, 06:53 AM
Hi,

The following example:

http://demos.telerik.com/silverlight/#Barcode/Configurator

demonstrates one such option. I hope it gets you started properly.

Regards,
Yavor
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Sergiy
Top achievements
Rank 1
answered on 31 May 2013, 09:45 AM
It's doesn't work on code-behind. Why?
If I am using xaml, it works.
See my new thread , please
0
Yavor
Telerik team
answered on 04 Jun 2013, 07:03 AM
Hello,

As mentioned in the other thread, in order to make sure that we are on the same page, please open a formal support ticket and send us the problematic code, which demonstrates your approach, along with the unwanted behavior. We will review it locally, and advise you further.

Regards,
Yavor
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
William
Top achievements
Rank 1
answered on 13 Nov 2018, 08:08 PM
Any update to this topic?  I too am trying to change the .Text property of the control in code behind to update the resulting image and then save to a byte stream for displaying in a report.  It seams that by changing the .Text property does not fire off the event that updates the resulting QR code.  I also tried "Dispatcher.Invoke((Action)(() => qrValue = rbcSalesOrder.Text));" to see if the control would update the QR code but no luck.
0
William
Top achievements
Rank 1
answered on 13 Nov 2018, 08:39 PM

Got this to work now by adding the following after setting the .Text and before saving to a byte array:

                Dispatcher.Invoke((Action)(() => qrValue = rbcSalesOrder.Text));      
                Dispatcher.Invoke(new Action(() => Thread.Sleep(1000)), DispatcherPriority.Background);

0
Dinko
Telerik team
answered on 16 Nov 2018, 01:36 PM
Hi William,

I have tested this behavior on my side but wasn't able to reproduce it. What I have tried is to change the Text property run time on MouseDoubleClick event. The RadBarcodeQR is updated after that. Can you elaborate more on your scenario? Also, is the RadBarcodeQR bound to a custom property in your application? 

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
William
Top achievements
Rank 1
answered on 11 Dec 2018, 05:12 PM

With my application I have one RadBarcodeQR being displayed. I am creating a report that needs to print multiple unique QR images.  These are later scanned by another application used to record production data.  The value scanned allows us to track production data based on that scanned value.  At generation time, the user can select to print one or any number of unique QR codes.  I update the Text of the RadBarcodeQR in the code-behind.  Since I only have one RadBarcodeQR being displayed I have to use my solution above in order for the UI to update, thus updating the RadBarcodeQR and then generate an image for that value for the report.

If the method to update the graphical part of the RadBarcodeQR (after Text change) was exposed, I would think I could use it instead of using the Dispatcher.Invoke.

Hope that helps explain my situation.

0
Dinko
Telerik team
answered on 14 Dec 2018, 11:07 AM
Hello William,

Thank you for elaborating your scenario. Still I not able to reproduce this behavior. I am attaching a sample project which I used to test your case. Can you take a look at this project and let me know if my approach of changing the Text of the barcode is different from yours? Maybe I am missing an additional step from your implementation.

As a side note, I am happy to hear that you have a workaround which you can use in your application so you can continue its development.

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
BarCode
Asked by
Paul
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Sergiy
Top achievements
Rank 1
William
Top achievements
Rank 1
Dinko
Telerik team
Share this question
or