if (this.tbSetLabel.Text.Trim() == "") { MessageBox.Show("请先 Enter 选择标签模板文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error); this.tbSetLabel.Focus(); return; } int VarTag = 0; if (tbVar0.Text.Trim() != "") { Va
废话不多讲,由于种种原因项目上出现了移动手持录入标签信息通过pc端转接实现打印的需求,所以简单研究了一下,本来考虑使用webapi方式实现,但是发现这种方式调用打印机实现自动打印比较困难,所以转而求其次就用了他:winform程序实现HttpListener对地址的监听.上正餐: 1. 项目结构:类HttpPostListener(实现监听业务类),HttpListenerPostValue(监听工具类) 2.HttpPostListener 代码 public class HttpPostLi
var lblList = new List<product_LblPrt_tmp>(); using (JL_MFGEntities ctx = new JL_MFGEntities()) { lblList=ctx.product_LblPrt_tmp.ToList(); } var list = ServiceLocator.Fetch<IMaterialService>().GetList(); var rpt = new XtraReport3(); rpt.DataSo
using System;using System.Collections.Generic;using System.Text;using System.Drawing.Printing;using System.Drawing;using System.Windows.Forms;namespace WinSys.Common{ public class Printer { private DataGridView dataview; pri