最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
提供一个DataGrid的打印类
时间:2022-07-02 11:36:06 编辑:袖梨 来源:一聚教程网
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 ;
相关文章
- 雪球官网网页版入口-雪球财经官网网页版 01-30
- 拷贝漫画2.1.0.4安卓下载入口-拷贝漫画2.1.0.4最新版本免费下载 01-30
- 有罪之身全集资源在线看-有罪之身最新一集免费观看入口地址 01-30
- 永劫无间云游戏入口-永劫无间无限畅玩云端官网 01-30
- 蓝莓影院官网入口-2026蓝莓影院电视剧免费观看 01-30
- 找靓机网页版直达-找靓机官网正版入口 01-30