Hi,support, I want to develop a WPF application, it can load barcode image, show this barcode image, and then decode this barcode picture out. So I wonder whether your .net barcode reader SDK can run in the WPF project?
---- Silvester
Hi,support, I want to develop a WPF application, it can load barcode image, show this barcode image, and then decode this barcode picture out. So I wonder whether your .net barcode reader SDK can run in the WPF project?
---- Silvester
Hi, Silvester.
The pqScan .net barcode reader component can be compatiblewith any .net project. So you can not only integrate our .net barcode reader library in WPF project, but also Winforms, asp.net web site applications.
If you want to add barcode scanning feature in the WPF program, it's really similar to the Windows forms application. They are both desktop projects, have the similar UI control layout and event. So you may insert the C# code of barcode reading feature to the button click event or MainWindowinitialization method.
Please look at the C# example code below. It's almost the same as the sample in any other Winforms projects. Before your starting, please download our trial version barcode reader SDK, and add it to the project reference.
Bitmap image = Bitmap.FromFile("barcode-image.jpg");
BarcodeResult[] results = BarCodeScanner.Scan(image);
Hope the C# code can be helpful.
---- pqScan Support Team
Copyright © pqScan 2010-2023. All Rights Reserved.