一个项目用的是 Argox A-150 条码打印机,做水晶报表打印时一直打印在中间,而且打印不完全,求助高手解决办法.打印机直接安装在开发机上,纸张设置是直接用打印机上的纸张去设置的,求高手帮忙解决.
解决方案 »
- 网站做了伪静态以后,为什么IIS日志里显示爬虫还是抓的.asp?XX=1这样的格式?
- 【算法问题】关于找零钱的算法!
- sqlserver2005里的数据表,id删除一些数据后,如何让id从1重新开始添加数据?
- 获取外部对象
- 如何将RichTextBox的内容保存到数据库?
- 如何还原sniffer pro捕获的数据 急用 在线等!
- 关于银行报盘的问题?十分着急.........
- 一个文件被StreamReader读取时,是否能够同时被StreamWriter写?
- 源码在此,高分请教高手!!!
- 解答后马上给分!!!
- 关于EventType clr20r3, P1 webdev.webserver20.exe问题
- DataGrid中显示金额如何保留2位小数
我贴点代码给你看,希望你能明白。
////字体设置
////this.dateTimePicker1.Format=dateTimePicker1.CustomFormat;
////dateTimePicker1.CustomFormat = "yyyy-MM-dd";
////System.DateTime currentTime = new System.DateTime(); //DateTime date = DateTime.Now;
//String format = "u";
//string year = DateTime.Now.Year.ToString();
//string month = date.ToString(format).Substring(5, 2);
//string day = date.ToString(format).Substring(8, 2);
/////字体纵向
//System.Drawing.StringFormat drawFormat = new System.Drawing.StringFormat();
//drawFormat.FormatFlags = StringFormatFlags.DisplayFormatControl; //Font bFont = new Font("黑体", 12, FontStyle.Regular);//小标签
//Font lFont = new Font("黑体", 14, FontStyle.Regular);//大标签
////e.Graphics.DrawImage(this.pictureBox3.Image, 50, 50, 279, 1000); //#region 1号帖
////旋转绘图平面
////倒影文字 //e.Graphics.RotateTransform(180);
//e.Graphics.DrawString(dataGridView1.CurrentRow.Cells["质检员"].Value.ToString(), bFont, Brushes.Black, -90, -65);
//e.Graphics.DrawString(dataGridView1.CurrentRow.Cells["等级"].Value.ToString(), bFont, Brushes.Black, -180, -65);
//e.Graphics.DrawString(dataGridView1.CurrentRow.Cells["净重"].Value.ToString(), bFont, Brushes.Black, -270, -65); //e.Graphics.DrawString(dataGridView1.CurrentRow.Cells["班次"].Value.ToString(), bFont, Brushes.Black, -90, -125);
//e.Graphics.DrawString(dataGridView1.CurrentRow.Cells["日期"].Value.ToString(), bFont, Brushes.Black, -190, -125);
//e.Graphics.DrawString(dataGridView1.CurrentRow.Cells["规格"].Value.ToString(), bFont, Brushes.Black, -265, -125);
//e.Graphics.DrawString(dataGridView1.CurrentRow.Cells["批号"].Value.ToString(), bFont, Brushes.Black, -195, -190);
//e.Graphics.ResetTransform(); //Code39 c39 = new Code39();
//c39.Height = 180;
//c39.Magnify = 1;
//c39.ViewFont = new Font("宋体", 20);
//e.Graphics.RotateTransform(90); //e.Graphics.DrawImage(c39.GetCodeImage(dataGridView1.CurrentRow.Cells["条形码"].Value.ToString(), Code39.Code39Model.Code39Normal, true), 480, -55, 190, 40);//条形码
//e.Graphics.DrawImage(c39.GetCodeImage(dataGridView1.CurrentRow.Cells[
// "条形码"].Value.ToString(), Code39.Code39Model.Code39Normal, true), 940, -55, 190, 40);//条形码 原始宽度129 //#endregion //string guige = dataGridView1.CurrentRow.Cells["厚度"].Value.ToString() + "µm*" + dataGridView1.CurrentRow.Cells["规格"].Value.ToString() + "mm*" + dataGridView1.CurrentRow.Cells["长度"].Value.ToString() + "m"; //#region 2号贴
//e.Graphics.DrawString(dataGridView1.CurrentRow.Cells["电晕面"].Value.ToString(), lFont, Brushes.Black, 280, -90, drawFormat);
//e.Graphics.DrawString(dataGridView1.CurrentRow.Cells["净重"].Value.ToString(), lFont, Brushes.Black, 280, -130, drawFormat);
//e.Graphics.DrawString(guige, lFont, Brushes.Black, 280, -170, drawFormat);
//e.Graphics.DrawString(dataGridView1.CurrentRow.Cells["型号"].Value.ToString(), lFont, Brushes.Black, 280, -210, drawFormat);
//e.Graphics.DrawString("食品用", lFont, Brushes.Black, 600, -170, drawFormat);
//e.Graphics.DrawString(dataGridView1.CurrentRow.Cells["等级"].Value.ToString(), lFont, Brushes.Black, 455, -90, drawFormat);
//e.Graphics.DrawString(dataGridView1.CurrentRow.Cells["班次"].Value.ToString(), lFont, Brushes.Black, 600, -90, drawFormat);
//e.Graphics.DrawString(dataGridView1.CurrentRow.Cells["日期"].Value.ToString(), lFont, Brushes.Black, 455, -130, drawFormat);
//e.Graphics.DrawString(dataGridView1.CurrentRow.Cells["批号"].Value.ToString(), lFont, Brushes.Black, 455, -210, drawFormat); //#endregion //#region 3号帖 //e.Graphics.DrawString(dataGridView1.CurrentRow.Cells["电晕面"].Value.ToString(), lFont, Brushes.Black, 770, -90, drawFormat);
//e.Graphics.DrawString(dataGridView1.CurrentRow.Cells["净重"].Value.ToString(), lFont, Brushes.Black, 770, -130, drawFormat);
//e.Graphics.DrawString(guige, lFont, Brushes.Black, 770, -170, drawFormat);
//e.Graphics.DrawString(dataGridView1.CurrentRow.Cells["型号"].Value.ToString(), lFont, Brushes.Black, 770, -210, drawFormat);
//e.Graphics.DrawString("食品用", lFont, Brushes.Black, 1090, -170, drawFormat);
//e.Graphics.DrawString(dataGridView1.CurrentRow.Cells["等级"].Value.ToString(), lFont, Brushes.Black, 940, -90, drawFormat);
//e.Graphics.DrawString(dataGridView1.CurrentRow.Cells["班次"].Value.ToString(), lFont, Brushes.Black, 1090, -90, drawFormat);
//e.Graphics.DrawString(dataGridView1.CurrentRow.Cells["日期"].Value.ToString(), lFont, Brushes.Black, 940, -130, drawFormat);
//e.Graphics.DrawString(dataGridView1.CurrentRow.Cells["批号"].Value.ToString(), lFont, Brushes.Black, 940, -210, drawFormat);