您好,我在printInfo中设置了sheet页的printInfo属性,
但未能显示页眉页脚的字符串。请问该如何处理?
var printInfo = tempSpread.sheets[m].printInfo();……var lfooter = fcprintDs.getAt(x).get("fmstLfooter");//左页脚
if (lfooter != "") {
printInfo.footerLeft(lfooter);
}
var mfooter = fcprintDs.getAt(x).get("fmstMfooter");//中页脚
if (mfooter != "") {
printInfo.footerCenter(mfooter);
}
var rfooter = fcprintDs.getAt(x).get("fmstRfooter");//右页脚
if (rfooter != "") {
printInfo.footerRight(rfooter);
}
var lheader = fcprintDs.getAt(x).get("fmstLheader");//左页眉
if (lheader != "") {
printInfo.headerLeft(lheader);
}
var mheader = fcprintDs.getAt(x).get("fmstMheader");//中页眉
if (mheader != "") {
printInfo.headerCenter(mheader);
}
var rheader = fcprintDs.getAt(x).get("fmstRheader");//右页眉
if (rheader != "") {
printInfo.headerRight(rheader);
}……tempSpread.sheets[m].printInfo(printInfo); |
|