您好!分页后每页需要打印的标题行即每页需要重复打印的行,则可以通过PrintInfo:repeatRowStart()和PrintInfo:repeatRowEnd()设置需要重复打印的起始行和结束行即可,如下代码:
- var printInfo = sheet.printInfo();
- // 设置每页需要重复的行,包括起始行和结束行,即标题行
- printInfo.repeatRowStart(0);
- printInfo.repeatRowEnd(0);
复制代码
可以参考API文档了解详情:
Worksheet:printInfo()--https://demo.grapecity.com.cn/spreadjs/help/api/classes/GC.Spread.Sheets.Worksheet#printinfo
PrintInfo:repeatRowStart()--https://demo.grapecity.com.cn/spreadjs/help/api/classes/GC.Spread.Sheets.Print.PrintInfo#repeatrowstart
PrintInfo:repeatRowEnd()--https://demo.grapecity.com.cn/spreadjs/help/api/classes/GC.Spread.Sheets.Print.PrintInfo#repeatrowend
|