var sheet = spread.getSheet(0);
sheet.options.isProtected = true;
sheet.autoGenerateColumns = false;
var printInfo = sheet.printInfo();
printInfo.zoomFactor(0.8);
printInfo.showGridLine(false);
printInfo.showRowHeader(GC.Spread.Sheets.Print.PrintVisibilityType.hide);
printInfo.showColumnHeader(GC.Spread.Sheets.Print.PrintVisibilityType.hide);
printInfo.paperSize(new GC.Spread.Sheets.Print.PaperSize(GC.Spread.Sheets.Print.PaperKind.a4));
printInfo.orientation(GC.Spread.Sheets.Print.PrintPageOrientation.landscape);
printInfo.margin({ top:0, bottom: 0, left: 0, right: 0, header: 0, footer: 0 });
printInfo.centering(GC.Spread.Sheets.Print.PrintCentering.both);
printInfo.repeatRowStart(0);
printInfo.repeatRowEnd(5);
有劳了 以上是打印时候的配置
|
|