zoukankan      html  css  js  c++  java
  • Print

            private void button1_Click(object sender, EventArgs e)
            {
                PrintPreviewDialog ppDialog = new PrintPreviewDialog();

                ppDialog.ClientSize = new Size(400, 500);
                ppDialog.Document = printDocument1;

                ppDialog.ShowDialog();

            }


            private void button2_Click(object sender, EventArgs e)
            {
                PageSetupDialog pageSetupDialog1 = new PageSetupDialog();

                pageSetupDialog1.Document = printDocument1;

                if (pageSetupDialog1.ShowDialog() == DialogResult.OK)

                    printDocument1 = pageSetupDialog1.Document;
            }


            private void button3_Click(object sender, EventArgs e)
            {
                PrintDialog printDialog1 = new PrintDialog();

                printDialog1.Document = printDocument1;

                if (printDialog1.ShowDialog() == DialogResult.OK)
                {

                    printDocument1 = printDialog1.Document;
                    printDocument1.Print();
                }
            }

  • 相关阅读:
    bzoj3237 cdq分治+可撤销并查集
    bzoj2957 奥妙重重的线段树
    bzoj3718 树状数组
    bzoj3991 LCA + set
    codeforces794D dfs+图上hash
    [ZJOI2010]数字计数/烦人的数学作业
    [SCOI2009]windy数
    数位DP(学习笔记)
    UVA10559 方块消除 Blocks
    采蘑菇
  • 原文地址:https://www.cnblogs.com/greencolor/p/1602634.html
Copyright © 2011-2022 走看看