最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
提供一个DataGrid的打印类
时间:2008-01-12 编辑:简简单单 来源:一聚教程网
namespace AsterDnet
{
using System;
using System.ComponentModel;
using System.Windows.Forms;
using System.Drawing;
using System.Drawing.Printing;
using System.IO;
using System.Data ;
using System.Data.SqlClient ;
///
/// 打印DataGrid中的数据到打印机
///
///
public class DataGridPrintDocument : PrintDocument
{
//打印字体
private Font printFont = null;
private DataTable dt=null;
//当前页码
private int currentPageNumber=1;
//是否打印页码
private bool isPrintPageNumber=false;
public bool IsPrintPageNumber
{
get
{
return this.isPrintPageNumber ;
{
using System;
using System.ComponentModel;
using System.Windows.Forms;
using System.Drawing;
using System.Drawing.Printing;
using System.IO;
using System.Data ;
using System.Data.SqlClient ;
///
/// 打印DataGrid中的数据到打印机
///
///
public class DataGridPrintDocument : PrintDocument
{
//打印字体
private Font printFont = null;
private DataTable dt=null;
//当前页码
private int currentPageNumber=1;
//是否打印页码
private bool isPrintPageNumber=false;
public bool IsPrintPageNumber
{
get
{
return this.isPrintPageNumber ;
相关文章
- anroid timer类代码 05-16
- C#复制数组的两种方式及效率比较解读 10-24
- ASP.NET Identity用法解析 10-24
- ASP.NET MVC使用Identity增删改查用户介绍 10-24
- C语言中atoi函数模拟实现介绍 10-18
- .Net反向代理组件Yarp用法介绍 10-10