The documentation is crafted to assist you to apply the features on your side easily. ByteScout Data Extraction Suite was created to assist wpf ui example for barcode reading with barcode reader sdk in C#. ByteScout Data Extraction Suite is the set that includes 3 SDK products for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK.
C# code snippet like this for ByteScout Data Extraction Suite works best when you need to quickly implement wpf ui example for barcode reading with barcode reader sdk in your C# application. If you want to know how it works, then this C# sample code should be copied and pasted into your application’s code editor. Then just compile and run it. This basic programming language sample code for C# will do the whole work for you in implementing wpf ui example for barcode reading with barcode reader sdk in your app.
Trial version can be downloaded from our website for free. It contains this and other source code samples for C#.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
using System; using System.Collections.Generic; using System.Configuration; using System.Windows; namespace ReadBarcodeFromImage { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : Application { } }
60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page
Explore ByteScout Data Extraction Suite Documentation
Explore Samples
Sign Up for ByteScout Data Extraction Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
using System; using System.Text; using System.Windows; using System.Windows.Input; using System.Windows.Media.Imaging; using Bytescout.BarCodeReader; namespace ReadBarcodeFromImage { public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); } // Select image file private void btnBrowse_Click(object sender, RoutedEventArgs e) { Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog { Filter = "Supported formats (*.bmp;*.gif;*.tif;*.png;*.jpg;*.pdf)|*.bmp;*.gif;*.tif;*.tiff;*.png;*.jpg;*.jpeg;*.pdf|All Files|*.*" }; if (dlg.ShowDialog() == true) { tbFileName.Text = dlg.FileName; tbFoundBarcodes.Text = ""; imageContainer.Source = null; try { BitmapImage bitmapImage = new BitmapImage(); bitmapImage.BeginInit(); bitmapImage.UriSource = new Uri(dlg.FileName, UriKind.Absolute); bitmapImage.EndInit(); imageContainer.Source = bitmapImage; } catch (Exception) { } } } private void btnDecode_Click(object sender, RoutedEventArgs e) { // Create barcode reader instance Reader reader = new Reader(); reader.RegistrationName = "demo"; reader.RegistrationKey = "demo"; // Specify barcode types to find reader.BarcodeTypesToFind.All = true; // Select specific barcode types to speed up the decoding process and avoid false positives. // Show wait cursor Mouse.OverrideCursor = Cursors.Wait; /* ----------------------------------------------------------------------- NOTE: We can read barcodes from specific page to increase performance. For sample please refer to "Decoding barcodes from PDF by pages" program. ----------------------------------------------------------------------- */ try { // Search for barcodes reader.ReadFrom(tbFileName.Text); } finally { Mouse.OverrideCursor = null; } // Display found barcode inforamtion: StringBuilder stringBuilder = new StringBuilder(); for (int i = 0; i < reader.FoundBarcodes.Length; i++) { FoundBarcode barcode = reader.FoundBarcodes[i]; stringBuilder.AppendFormat("{0}) Type: {1}; Value: {2}.\r\n", i + 1, barcode.Type, barcode.Value); } tbFoundBarcodes.Text = stringBuilder.ToString(); // Cleanup reader.Dispose(); } } }
60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page
Explore ByteScout Data Extraction Suite Documentation
Explore Samples
Sign Up for ByteScout Data Extraction Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
<?xml version="1.0"?> <configuration> <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page
Explore ByteScout Data Extraction Suite Documentation
Explore Samples
Sign Up for ByteScout Data Extraction Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page
Explore ByteScout Data Extraction Suite Documentation
Explore Samples
Sign Up for ByteScout Data Extraction Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: