回复 1楼hsw1688的帖子
试过把单元格修改为只读,仅开放扫描枪输入?
如:
- fpSpread1.ActiveSheet.Protect = true;
- fpSpread1.ActiveSheet.LockBackColor = Color.LightCyan;
- fpSpread1.ActiveSheet.LockForeColor = Color.Green;
- FarPoint.Win.Spread.Column columnobj;
- columnobj = fpSpread1.ActiveSheet.Columns[0, 3];
- columnobj.Locked = true;
复制代码
顺便向您学习一下业务,扫描枪怎么把数据输入的? |