掌握.NET中的日常打印:包括各个类的参数等
http://blog.csdn.net/dzweather/article/details/10171105
设置纸张大小
PrintDocument pd = new PrintDocument();
PrintDocument pd = new PrintDocument();
PaperSize p=null;
foreach(PaperSize ps in pd.PrinterSettings.PaperSizes)
{
if(ps.PaperName.Equals("A4"))
p = ps;
}
pd.DefaultPageSettings.PaperSize = p;
时间: 2024-12-28 13:58:03