I am trying to print an image on Epson TM-T20II. Here is my code:
string path = @"test.bmp";
if (File.Exists(path))
{
Console.WriteLine("exists");
OPOSHelper.printer.ErrorEvent += Printer_ErrorEvent; // Do I have to configure this?
OPOSHelper.printer.SetBitmap(1, PrinterStation.Receipt, path, PosPrinter.PrinterBitmapAsIs, PosPrinter.PrinterBitmapCenter);
OPOSHelper.printer.PrintNormal(PrinterStation.Receipt, "\x1B|1B");
}
else
{
Console.WriteLine("DOES NOT EXIST!!!");
}
When I run it I got the next error:
Method SetBitmap threw an exception. A class-specific error condition ocurred. the error condition code is available in the ResultCodeExtended property
I want to read the ResultCodeExtended property
but i cant find how, do I have to configure the ErrorEvent
? Or how is it suppouse to read it?
` Doesn't do anything on this site. You have to enter twice – AustinWBryan Jul 22 '18 at 08:04