jiangyuxuan

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2016年1月21日

摘要: windows一个特点就是设备无关性,这样就给程序控制打印机提供了很好的方法。首先引用“泥人张”写的打印API类。usingSystem;usingSystem.Collections;usingSystem.Text;usingSystem.Runtime.InteropServices;usin... 阅读全文
posted @ 2016-01-21 23:26 江宇旋 阅读(1424) 评论(0) 推荐(0) 编辑

摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Drawing.Printing;using S... 阅读全文
posted @ 2016-01-21 22:48 江宇旋 阅读(2168) 评论(2) 推荐(0) 编辑

摘要: .Net 提供的打印类PrintDocument 非常简洁易用,不过在实际应用开发中往往需要对纸张进行自定义,尤其是需要进行票据打印时。这个问题也困扰了我许久,经过查阅相关的资料和多次尝试,发现其实也很简单。下面的示例就是我在.Net2.0已经验证可行的办法:using System;using S... 阅读全文
posted @ 2016-01-21 22:42 江宇旋 阅读(3509) 评论(0) 推荐(0) 编辑

摘要: C# WinForm 父窗体 子窗体 传值本次示例效果如下:Form1为父窗体(包含textBox1、button1)Form2为子窗体(包含textBox2、button2)父窗体给子窗体传值==================1.点击Form1的button1 打开Form2 父窗体给子窗体传值... 阅读全文
posted @ 2016-01-21 21:50 江宇旋 阅读(1013) 评论(0) 推荐(0) 编辑