问题:打印内容不居中?
内容设置:A4大小的基础上略微缩小纸张大小,设置垂直水平居中,去除间距,打印方向设置为横向,
浏览器打印设置:布局横向,纸张A4,边距默认,缩放100,页眉和页脚无
打印代码:
var A4=new GC.Spread.Sheets.Print.PaperSize(9);
var w=A4.Vo*0.89;
var h=A4._v*0.89;
var sheet = GC.Spread.Sheets.Designer.wrapper.spread.getActiveSheet();
sheet.printInfo().paperSize(new GC.Spread.Sheets.Print.PaperSize(w, h));
sheet.printInfo().centering(GC.Spread.Sheets.Print.PrintCentering.both);
sheet.printInfo().margin({ top: 0, bottom: 0, left: 0, right: 0, header: 0, footer: 0 });
sheet.printInfo().orientation(GC.Spread.Sheets.Print.PrintPageOrientation.landscape);
GC.Spread.Sheets.Designer.wrapper.spread.print();
(附件中有模板和打印效果截图)
|
|