05 2012 档案
摘要:C#实现打印功能具体的操作步骤如下: 创建一个PrintDialog的实例。如下: System.Windows.Forms.PrintDialog PrintDialog1=new PrintDialog (); 创建一个PrintDocument的实例.如下: System.Drawing.Printing.PrintDocument docToPrint = new System.Drawing.Printing.PrintDocument(); 设置打印机开始打印的事件处理函数.函数原形如下: void docToPrint_PrintPage(object se...
阅读全文
摘要:使用通常的方式http://hi.baidu.com/wangzhiqing999/blog/item/a57d1a86009e439ff703a67a.html测试表与测试数据CREATE TABLE TestTitle (name VARCHAR(10),titleVARCHAR(10));INSERT INTO TestTitle VALUES ('张三', '程序员');INSERT INTO TestTitle VALUES ('张三', '系统管理员');INSERT INTO TestTitle VALUES (
阅读全文
摘要:/// <summary> /// 数据库中与C#中的数据类型对照/// </summary> /// <param name="type"></param> /// <returns></returns> private string ChangeToCSharpType(string type) { string reval=string.Empty; switch(type.ToLower()) { case "int": reval= "Int32"; b
阅读全文

浙公网安备 33010602011771号