예제 #1
0
        private void baseButton1_Click(object sender, EventArgs e)
        {
            PrintForm pf = new PrintForm(this, strPath, Common.Util.CommonTeisu.SIZE_A4, false);

            pf.ShowDialog(this);
            if (this.printFlg == Common.Util.CommonTeisu.ACTION_PREVIEW)
            {
                pf.execPreview(strPath);
                pf.ShowDialog(this);
            }
            else if (this.printFlg == Common.Util.CommonTeisu.ACTION_PRINT)
            {
                pf.execPrint(null, strPath, Common.Util.CommonTeisu.SIZE_B4, Common.Util.CommonTeisu.YOKO, false);
            }
        }
예제 #2
0
 private void axAcroPDF1_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
 {
     if (e.KeyCode == Keys.F11)
     {
         PrintForm pf = new PrintForm(this, strPath, Common.Util.CommonTeisu.SIZE_A4, false);
         pf.ShowDialog(this);
         if (this.printFlg == Common.Util.CommonTeisu.ACTION_PREVIEW)
         {
             pf.execPreview(strPath);
             pf.ShowDialog(this);
         }
         else if (this.printFlg == Common.Util.CommonTeisu.ACTION_PRINT)
         {
             pf.execPrint(null, strPath, Common.Util.CommonTeisu.SIZE_B4, Common.Util.CommonTeisu.YOKO, false);
         }
     }
     else if (e.KeyCode == Keys.F12)
     {
         this.Close();
     }
 }