首页 > 代码库 > (链接).NET打印小资料

(链接).NET打印小资料

 

            掌握.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;

(链接).NET打印小资料