如何通过 OPOS 在 Fiscal Printer 中打开 Day?
我的代码不起作用...
device = new OPOSFiscalPrinterClass();
device.Open("FiscPrinter"); //Opened succes
device.ClaimDevice(1000); //Claimed success
device.DeviceEnabled = true; //Enabled success
if (device.DayOpened)
{
device.PrintZReport();
}
device.FiscalReceiptType = (int)OPOSFiscalPrinterConstants.FPTR_RT_SALES;
device.BeginFiscalReceipt(true); //After that: ResultCode=114, ResultCodeExtended=221, PrinterState=2, DayOpened=false
device.PrintRecItem("Milk", 25.00M, 10000, 0, 25.00M, "");
device.EndFiscalReceipt(false); //After that: Receipt cannot be closed, ResultCode=114, ResultCodeExtended=207
device.Release();
device.Close();
尝试使用 UnifiedPOS 文档。怎么了?