Can I read barcode image from report in C# .NET?

back to home  >  Tech FAQ  >  Scanbarcode from report in C# .NET project

Question:

Hi,support, I'm in trouble with recognizing barcodes in Crystal report. Does your .net barcode reader control apply this reading feature in Crystal report? Any suggestion is appreciated.

---- Kent

Answer:

Hi, Kent.

We don't provide report barcode reader add-in, so you can't read the barcode in the report directly. However you can decode these barcodes in another way, which is exporting and saving them to image files from your report.

Nearly all the popular reports are supplying the "SaveAs" function, like Crystal report, SSRS, RDLC report, BIRT report, iReport and Jasper report. You can use the build-in save feature to export the barcode report to raster image file(bmp, jpg, png, tiff). If the report you used is not supported export to image files, you can try to convert the report to PDF document. Our .net barcode reader is also allowed to scan barcodes in PDF files. Please click the link for details.

In this way, you can decode all the 1D and 2D barcodes we supported in your report now. The following C# code is a sample demo for reading barcodes from your report image.

Bitmapimage = Bitmap.FromFile("report-image.jpg");

BarcodeResult[] results = BarCodeScanner.Scan(image);

Console.Write(results[0].Data.ToString());

Hope the C# code can be helpful.

---- pqScan Support Team

Online Demo Download Trial Can I Read Barcode in PDF document using C#? Need help for reading barcode with unconventional position? How to read barcode from Microsoft Office? Can I read barcode image from report in C# .NET? Can I read color barcode image in C# .NET? Is it available for reading all of the barcode in a picture by one time? How to scan barcode from webcam or other device? Can I use your barcode reading SDK in Mono? I can't scan barcode from my images with different DPI. How to scan barcode in asp.net web application? How to scan barcode in WPF project using C# language? Can I run your .net barcode reader library in Windows7 or Windows8? How to scan rotated barcode in .net project?