ASP.NET Barcode SDK Component

GetLastError 

 

Get the string of last error.
 

string GetLastError()
)

 

No Parameter


Return Value
Return the string of last error.

Example

   

C# Syntax
using System.Drawing;
using System.Drawing.Imaging;
using BarcodeWrapper;

BarcodeReader reader= new BarcodeReader();
reader.ScanWithoutRotation = true;
reader.TryHard = true;
reader.ScanMultiple = true;
Bitmap bitmap = new Bitmap(strinputpath1);
int count = reader.ReadBarcodeImage(bitmap, x, y, width, height);
string strError  = reader.GetLastError();
string text = "" + count + " codes found<br><br>";

for (int i = 0; i < count; i++)
{
text += reader.GetBarcodeType(i) + " value:" + reader.GetBarcodeValue(i) + "<br>";
}