Friday, March 09, 2012 2:53 AM
The error "Microsoft.PointOfService.PosControlException: Method PrintBarCode threw an exception. Attempt was made to perform an illegal or unsupported operation with the device, or an invalid parameter value was used." occurs on this line of code:
_printDoc.PrintBarCode(PrinterStation.Receipt, "15270041", BarCodeSymbology.Code128, 60, 512, PosPrinter.PrinterBarCodeCenter, BarCodeTextPosition.Below);
I tried Code39 without success as well. Note that I have no problem with PrintNormal.
I just looked at the event log and there is a warning from MS POS. Not sure if this is related to the error.
Log Name: Application
Source: Microsoft Point Of Service
Date: 9/03/2012 1:48:26 PM
Event ID: 0
Task Category: None
Unable to load global configuration file. Could not find file 'C:\ProgramData\Microsoft\Point Of Service\Configuration\Configuration.xml'.
<Provider Name="Microsoft Point Of Service" />
<TimeCreated SystemTime="2012-03-09T02:48:26.000000000Z" />
<Data>Unable to load global configuration file. Could not find file 'C:\ProgramData\Microsoft\Point Of Service\Configuration\Configuration.xml'.</Data>
- Edited by Annette99 Friday, March 09, 2012 3:17 AM