[c#]打印特定页面 [英] [c#] Print specific page
本文介绍了[c#]打印特定页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有代码:
I have the code:
PrintDialog printDialog1 = new PrintDialog();
printDialog1.UseEXDialog = true;
printDialog1.AllowSomePages = true;
printDialog1.AllowSelection = true;
printDialog1.AllowPrintToFile = false;
printDialog1.AllowCurrentPage = true;
printDialog1.Document = printDocument1;
if (printDialog1.ShowDialog() == DialogResult.OK)
{
NatP();
}
我只需打印一些页面,例如。页面号3.
如何修复代码?
I need to print only some pages, ex. page no. 3.
How to fix the code?
推荐答案
检查以下文章
http://www.c-sharpcorner.com/UploadFile/dbeniwal321/printing-multiple- pages-in-C-Sharp / [ ^ ]
http://www.dreamincode.net/forums/topic/44330-printing-in-c%23/ [ ^ ]
Check the following article
http://www.c-sharpcorner.com/UploadFile/dbeniwal321/printing-multiple-pages-in-C-Sharp/[^]
http://www.dreamincode.net/forums/topic/44330-printing-in-c%23/[^]
这篇关于[c#]打印特定页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文