基本信息
源码名称:C# 打印超市小票 示例源码
源码大小:0.11M
文件格式:.rar
开发语言:C#
更新时间:2017-09-30
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 3 元 
   源码介绍

 private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
        {
            Font font1=new Font("黑体",22);
            Font font2 = new Font("宋体", 18);
            SolidBrush brush1=new SolidBrush(Color.Black);
            Pen pen1=new Pen(Color.Black,(float)2.00);
            e.Graphics.DrawString("新奇红超市", font1, brush1, 330, 60);
            String DT = DateTime.Now.ToString("yyy-MM-dd");
            e.Graphics.DrawString(DT, font1, brush1, 100, 100);
            e.Graphics.DrawLine(pen1, 100, 140, 700, 140);
            e.Graphics.DrawString("货号/品名", font2, brush1, 150, 150);
            e.Graphics.DrawString("单价", font2, brush1, 400, 150);
            e.Graphics.DrawString("数量", font2, brush1, 500, 150);
            e.Graphics.DrawString("小计", font2, brush1, 600,150);
            e.Graphics.DrawString("25555555555/柠檬", font2, brush1, 100, 200);
            e.Graphics.DrawString("2.50", font2, brush1, 400, 200);
            e.Graphics.DrawString("1", font2, brush1, 500, 200);
            e.Graphics.DrawString("2.50", font2, brush1, 600, 200);
            e.Graphics.DrawString("2565968563596/优酸乳菌", font2, brush1, 100, 280);
            e.Graphics.DrawString("5.60", font2, brush1, 400, 280);
            e.Graphics.DrawString("1", font2, brush1, 500, 280);
            e.Graphics.DrawString("5.60", font2, brush1, 600, 280);
            e.Graphics.DrawString("2987895335386/极致质感粒筒纸绿", font2, brush1, 100, 320);
            e.Graphics.DrawString("17.90", font2, brush1, 400, 350);
            e.Graphics.DrawString("1", font2, brush1, 500, 350);
            e.Graphics.DrawString("17.90", font2, brush1, 600, 350);
            e.Graphics.DrawLine(pen1, 100, 380, 700, 380);
            e.Graphics.DrawString("数量: 3", font2, brush1, 100, 420);
            e.Graphics.DrawString("件数: 3", font2, brush1, 300, 420);
            e.Graphics.DrawString("合计: 26.00", font2, brush1, 100,470);
            e.Graphics.DrawString("付款:人民币现金     50.00", font2, brush1, 100, 520);
            e.Graphics.DrawString("找零:人民币现金     24.00", font2, brush1, 100, 570);
            e.Graphics.DrawString("会员:593586", font2, brush1, 100, 620);
            e.Graphics.DrawString("会员积分:1039.6", font2, brush1, 100, 670);
            e.Graphics.DrawString("本次积分:54.6", font2, brush1, 400, 670);

        }