我用如下的代码:
$("#btnPrint").click(function () {
// used to adjust print range, should set with printInfo (refer custom print for detail)
//var sheet1 = spread.getSheet(0);
var printInfo = GC.Spread.Sheets.Print.PrintInfo();
printInfo.paperSize(new GC.Spread.Sheets.Print.PaperSize(GC.Spread.Sheets.Print.PaperKind.a4));
printInfo.centering(GC.Spread.Sheets.Print.PrintCentering.horizontal);
printInfo.showBorder(false);
printInfo.qualityFactor(5);
spread.print();
});
出现下面的错误:
Uncaught TypeError: Cannot read property 'paperSize' of undefined
|
|