参照上面Demo中的打印设置:
- //打印设置
- printInfo.paperSize(new GC.Spread.Sheets.Print.PaperSize(GC.Spread.Sheets.Print.PaperKind.a4));
- // printInfo.paperSize(new GC.Spread.Sheets.Print.PaperSize(950,2000));
- printInfo.margin({ top: 0, bottom: 0, left: 0, right: 0, header: 0, footer: 0 });
- // //是否打印控件的外边框
- printInfo.showBorder(false);
- // //是否打印网格线(默认打印)
- printInfo.showGridLine(false);
- printInfo.headerCenter("&"Comic Sans MS"System Information");
- printInfo.footerCenter("第&P/&N");
- // printInfo.zoomFactor(0.5);//缩放
- printInfo.orientation(GC.Spread.Sheets.Print.PrintPageOrientation.landscape);//打印的页面方向。portrait纵 landscape
- printInfo.centering(GC.Spread.Sheets.Print.PrintCentering.horizontal);//打印页面的居中方式。
- printInfo.showColumnHeader(GC.Spread.Sheets.Print.PrintVisibilityType.hide);//获取或设置是否打印列标题。
- printInfo.showRowHeader(GC.Spread.Sheets.Print.PrintVisibilityType.hide);
复制代码 |