I have just installed the spire.barcode. I'm using .net 4.0 visual studio 2012 professional.
I just look through some of the tutorial and it looks like I got everything in place.
I create a console app in c# and I have a data matrix barcode
the data matrix barcode is a bitmap saved from a PDF file using ghosts-script. (.png)
the bitmap is 50 X 40 (RGB)
(See atttachment)
my code
- Code: Select all
using Spire.Barcode;
string data = BarcodeScanner.ScanOne (@"c:\temp\out2.png");
Console.WriteLine("The scanning result is: {0}.", data);
Console.ReadLine();
I also tried
- Code: Select all
string[] data = BarcodeScanner.Scan(BarCodeImage, BarCodeType.DataMatrix);
foreach (string bar in data)
Console.WriteLine("The scanning result is: {0}.", bar);
unfortunately neither of these method are working for me ( no errors) ?
I must be missing something.
any help would be great
Thank You