本帖最后由 18744279242 于 2017-12-20 10:53 编辑
我想导出的PDF跟A4纸一样,但是导来的PDF样式不居中。我该怎么设置。 var printInfo = sheet.printInfo();
printInfo.paperSize(new GC.Spread.Sheets.Print.PaperSize(GC.Spread.Sheets.Print.PaperKind.a4));
printInfo.margin({top:0, bottom:0, left:0, right:0, header:0, footer:0});
printInfo.showBorder(false);
printInfo.centering(GC.Spread.Sheets.Print.PrintCentering.both);
printInfo.zoomFactor(0.95);
printInfo.bestFitColumns(false);
printInfo.bestFitRows(false);
printInfo.rowEnd(sheet.getRowCount());
printInfo.columnEnd(sheet.getColumnCount());
printInfo.qualityFactor(6);
printInfo.showGridLine(false);
printInfo.showColumnHeader(GC.Spread.Sheets.Print.PrintVisibilityType.hide);
printInfo.showRowHeader(GC.Spread.Sheets.Print.PrintVisibilityType.hide);
|
|