Spire.Barcode is a professional barcode library specially designed for .NET developers (C#, VB.NET, ASP.NET, .NET Core) and Java developers (J2SE and J2EE) to generate, read and scan 1D & 2D barcodes.

Mon Nov 03, 2014 7:07 pm

Hello,
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)

out2.png


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

kc2scy
 
Posts: 2
Joined: Mon Nov 03, 2014 6:55 pm

Tue Nov 04, 2014 2:32 am

Hello,

Thanks for your inquiry.
I have noticed the issue you mentioned, which has been transferred to our Dev team, once there are any update, we will let you know.
Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Tue Nov 04, 2014 1:20 pm

Thank you for your reply,

But I got it to work finally by telling Ghost-Script to increase the resolution and size of the bitmap it was creating.
I'm thinking that the image was too small and resolution was to low for the scanner to work properly but this is only a assumption.

You might want to post some small requirements about that, if my assumption are correct could save someone some time.

Other than that, so far so good.


Thank You

kc2scy
 
Posts: 2
Joined: Mon Nov 03, 2014 6:55 pm

Wed Nov 05, 2014 1:19 am

Hello,

Thanks for your response. Glad to hear that you have managed to resolve the issue.

Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Return to Spire.BarCode

cron