POS For .NET: Failed to set property properties of PosPrinter.

Posted by StreamT on Stack Overflow See other posts from Stack Overflow or by StreamT
Published on 2010-02-01T19:41:48Z Indexed on 2010/03/24 21:43 UTC
Read the original article Hit count: 693

Filed under:
|
|

I can't set properties of PosPritnter class. For example PageModeStation, PageModeVerticalPosition, PageModePrintArea etc.

PosPrinter posPrinter = (PosPrinter)posExplorer.CreateInstance(posPrinterInfo);
posPrinter.Open();
posPrinter.Claim(1000);
posPrinter.DeviceEnabled = true;
posPrinter.PageModeVerticalPosition = 10; //<--- Exception thrown: Failed to set property PageModeVerticalPosition

Exception details:

    Microsoft.PointOfService.PosControlException was unhandled
    Message="Failed to set property PageModeVerticalPosition."
    Source="Microsoft.PointOfService"
    ErrorCodeExtended=0
    StackTrace:
           at Microsoft.PointOfService.Legacy.LegacyProxy.SetProperty(String propertyName, Object propertyValue)
           at Microsoft.PointOfService.Legacy.LegacyPosPrinter.set_PageModeVerticalPosition(Int32 value)
       ....

Any suggestions?

© Stack Overflow or respective owner

Related posts about pos

Related posts about .NET