public static Status SetBackPosition(BlackPosition pos, int len) { if (!IsUse) { return(Status.SUCC); } try { Status nRet = (Status)EpsonSetBlackMark(pos, len); if (nRet != Status.SUCC) { AppLog.Write("[InvoicePrinter][SetBackPosition]" + nRet.ToString(), AppLog.LogMessageType.Warn); } return(nRet); } catch (System.Exception e) { AppLog.Write("[InvoicePrinter][SetBackPosition]Error!\n" + e.ToString(), AppLog.LogMessageType.Error); return(Status.FAIL); } }
protected static extern int EpsonSetBlackMark(BlackPosition position, int len);