Error when printing barcode
-
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
Level: Warning
Keywords: Classic
User: N/A
Computer: CDC-DEV-LT1
Description:
Unable to load global configuration file. Could not find file 'C:\ProgramData\Microsoft\Point Of Service\Configuration\Configuration.xml'.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft Point Of Service" />
<EventID Qualifiers="0">0</EventID>
<Level>3</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2012-03-09T02:48:26.000000000Z" />
<EventRecordID>19390</EventRecordID>
<Channel>Application</Channel>
<Computer>CDC-DEV-LT1</Computer>
<Security />
</System>
<EventData>
<Data>Unable to load global configuration file. Could not find file 'C:\ProgramData\Microsoft\Point Of Service\Configuration\Configuration.xml'.</Data>
</EventData>
</Event>- Edited by Annette99 Friday, March 09, 2012 3:17 AM

