DataTable dt = (DataTable)Session["Generate"];
System.Drawing.Font printFont = new System.Drawing.Font("3 of 9 Barcode", 9);
System.Drawing.SolidBrush br = new System.Drawing.SolidBrush(System.Drawing.Color.Red);
string s = Server.MapPath(@"../images/112983627");
System.Drawing.GraphicsUnit units = System.Drawing.GraphicsUnit.Pixel;
e.Graphics.DrawString(s, new System.Drawing.Font("3 of 9 Barcode", 9, System.Drawing.FontStyle.Regular), new System.Drawing.SolidBrush(System.Drawing.Color.Black), 10, 200);
答案 0 :(得分:0)
关于从字符串打印条形码图像,您可以参考zxing(斑马线)c#开源库从字符串https://github.com/zxing/zxing生成条形码/ QR码图像
并且也参考下面的线程 Using ZXing to create an android barcode scanning app