最新下载
热门教程
- 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 ;
相关文章
- 后宫狂热免费漫画下载最新安装版本 - 后宫狂热弹窗页面看漫画入口 05-17
- C4D如何创建三维立体刀切馒头模型 05-17
- 时代天华七彩课堂如何看回放 05-17
- 洛克王国世界S2赛季奇遇精灵一览 05-17
- 超星平台登录入口-超星平台网页版在线登录 05-17
- 如何在pycharm中设置编译器 05-17