按照如下设置printInfo
var printInfo = sheet.printInfo();
printInfo.margin(0);
printInfo.orientation(GC.Spread.Sheets.Print.PrintPageOrientation.landscape);
printInfo.paperSize(new GC.Spread.Sheets.Print.PaperSize(GC.Spread.Sheets.Print.PaperKind.a4));
printInfo.zoomFactor(0.95);
另外:浏览器打印设置需要去掉边框(也就是下图红框所示),默认因为有边框所以会撑出spreadjs设置的A4纸张大小,以至于分2页进行打印
|