你好,通过以下设置可提升打印预览速度:- //打印设置
- printInfo.paperSize(new GC.Spread.Sheets.Print.PaperSize(GC.Spread.Sheets.Print.PaperKind.a4));
- printInfo.margin({ top: 10, 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/&F");
- printInfo.zoomFactor(0.9);//缩放
- printInfo.qualityFactor(1);//打印的质量因子
- printInfo.orientation(GC.Spread.Sheets.Print.PrintPageOrientation.portrait);//打印的页面方向。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);
- spread.print();
复制代码
|