1, 若在项目中放logback.groovy文件(如: src/test/resource下),则日志会打印到控制台上. logback.groovy 内容如下: // // Built on Fri Feb 14 07:38:28 CET 2014 by logback-translator // For more information on configuration files in Groovy // please see http://logback.qos.ch/manual/g
这段时间学习spread控件,用到打印设置上边,其他的设置都还好说,但是打印纸张的大小,纸张类型等把我折腾的够呛,找了半天才找到,记录下来备查. 1.打印纸张类型: System.Drawing.Printing.PaperSize pkSize; System.Drawing.Printing.PrintDocument printDoc = new System.Drawing.Printing.PrintDocument(); for (int i = 0; i < printDoc.Pr