POS For .NET:无法设置PosPrinter的属性属性
我无法设置PosPritnter类的属性。例如PageModeStation,PageModeVerticalPosition,PageModePrintArea等。
PosPrinter posPrinter = (PosPrinter)posExplorer.CreateInstance(posPrinterInfo);
posPrinter.Open();
posPrinter.Claim(1000);
posPrinter.DeviceEnabled = true;
posPrinter.PageModeVerticalPosition = 10; //<--- Exception thrown: Failed to set property PageModeVerticalPosition
例外细节:
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)
....
有什么建议?
没有找到相关结果
已邀请:
1 个回复
貉骂
2 - 定义打印区域。
在尝试设置该属性之前。