using System.Drawing.Printing; using System.Drawing; private void Test() ... { PrintDocument m_pdoc = new PrintDocument(); PaperSize psz = new PaperSize(); m_pdoc.PrinterSettings.PrinterName = "Microsoft Office Document Image Writer"; psz.RawKind = 0;// Printing.PaperKind.Custom此枚举的值是0 psz.Width = 350; psz.Height = 350; m_pdoc.DefaultPageSettings.PaperSize = psz; //设置纸张大小 m_pdoc.PrintPage += new PrintPageEventHandler(prn_PrintPage); m_pdoc.Print();}