private void PrintQuiz() { PrintForm p = new PrintForm(firstPage); p.Show(); p.Hide(); new PrintController().Print(p.First); p.Close(); }
private void PDFPreview_KeyDown(object sender, KeyEventArgs 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); pf.Close(); pf.Dispose(); } } else if (e.KeyCode == Keys.F12) { this.Close(); } }