A3打印的效果如图:
代码如下:
- var sheet = spread.getActiveSheet();
- sheet.options.rowHeaderVisible = false;
- sheet.options.colHeaderVisible = false;
- // sheet.deleteColumns(0,1);
- // sheet.printInfo().paperSize(A4);
- sheet.printInfo().paperSize(new GC.Spread.Sheets.Print.PaperSize(1200, 1800));
- sheet.printInfo().centering(GC.Spread.Sheets.Print.PrintCentering.both);
- sheet.printInfo().margin({ top: 0, bottom: 0, left: 0, right: 10, header: 0, footer: 0 });
- // sheet.printInfo().orientation(GC.Spread.Sheets.Print.PrintPageOrientation.portrait);
- sheet.printInfo().orientation(GC.Spread.Sheets.Print.PrintPageOrientation.landscape);
- sheet.printInfo().zoomFactor(1.2);
复制代码 |