这几天做的功能用到了打印这个功能,直接在网上找了点demo,在这里做个备份. 1.直接打印DataTable using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using System.Drawing; using System.Drawing.Printing; using System.Data; namespace
using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using System.Drawing.Printing; using System.Drawing; namespace Lds2013 { /**//// <summary> /// 打印类 /// </summary> public class Printer { private Dat
今天我们来讨论下一个实体中某个属性又是实体的类型的集合绑定到DataGridView上的问题. 先来写一个Student类 public class Student { public int StudentNo { get; set; } public string StudentName { get; set; } public string Address { get; set; } public int GradeId { get; set; } public string Gender
using System;using System.Collections.Generic;using System.Text;using System.Drawing.Printing;using System.Drawing;using System.Windows.Forms;namespace WinSys.Common{ public class Printer { private DataGridView dataview; pri