5
這是我的示例代碼。但它的打印空頁如何在C中使用PrintDialog打印文檔
printDocument1.DocumentName = "C:\a.pbf";// PrintDocument printDocument1
printDialog1.Document = printDocument1;
printDialog1.AllowPrintToFile = true;
printDialog1.AllowSelection = true;
printDialog1.AllowSomePages = true;
printDialog1.PrintToFile = true;
if (printDialog1.ShowDialog() == DialogResult.OK)
printDocument1.Print();
這是什麼錯誤?請幫助我
什麼類型printDocument1? – abhilash 2010-11-23 07:07:58