sender, EventArgs e) 2 { 3 printDialog1.ShowDialog(); //设置打印文档 4 printPreviewDialog1....Document = this.printDocument1; 5 printPreviewDialog1.PrintPreviewControl.Zoom = 1;...6 printPreviewDialog1.ClientSize = new Size(800, 800); 7 printPreviewDialog1
PrintPageEventHandler(this.MyPrintDocument_PrintPage); //将写好的格式给打印预览控件以便预览 printPreviewDialog1....Document = printDocument1; //显示打印预览 DialogResult result = printPreviewDialog1
2 prd PrintDialog 3 pdc PrintDocument 4 prv PrintPreviewControl 5 ppd PrintPreviewDialog
HeaderHeight = ; public static void Print_DataGridView(DataGridView dgv1) { PrintPreviewDialog...SelectedColumns = dlg.GetSelectedColumns(); RowsPerPage = ; ppvw = new PrintPreviewDialog
Timer 印刷 psd PageSetupDialog prd PrintDialog pdc PrintDocument prv PrintPreviewControl ppd PrintPreviewDialog
qtx11extras-跳过qtxmlpatterns-无openssl-无feature BealerManagement-无feature printdialog-无feature printer-无feature printpreviewdialog
4.8.3 打印预览 用PrintPreviewDialog类可以在屏幕上显示PrintDocument的打印效果,既打印预览。...(52) 放PrintPreviewDialog控件到窗体,属性name为printPreviewDialog1。...53) 为打印预览菜单项增加单击事件处理函数如下: private void menuItemPrintView_Click(object sender,System.EventArgs e) { printPreviewDialog1....Document=printDocument1; printPreviewDialog1.ShowDialog(); } (54) 编译,运行,输入若干字符,试验一下预览的效果,预览的效果如图4.8.3
领取专属 10元无门槛券
手把手带您无忧上云