public void OnGetPrinterSetting(ref SPrinterSetting ss) { ss.sExtensionSetting.WorkPosList[0] = (int)(UIPreference.ToInchLength(m_CurrentUnit, Decimal.ToSingle(this.numPos1.Value)) * _printerProperty.fPulsePerInchAxis4); ss.sExtensionSetting.WorkPosList[1] = (int)(UIPreference.ToInchLength(m_CurrentUnit, Decimal.ToSingle(this.numPos2.Value)) * _printerProperty.fPulsePerInchAxis4); int enable = 0; if (cbxEnable1.Checked) { enable = enable | 1; } if (cbxEnable2.Checked) { enable = enable | (1 << 1); } ss.sExtensionSetting.WorkPosEnable = (byte)enable; EpsonLCD.SetWorkPosInfo(ss); LogWriter.WriteLog( new string[] { string.Format("[JianRui]WorkPos1:{0},JianRui]WorkPos2:{1}", ss.sExtensionSetting.WorkPosList[0], ss.sExtensionSetting.WorkPosList[1]) }, true); }