import jxl.*;
import jxl.write.*;
workbook = Workbook.createWorkbook(
new File("test46.xls"),
Workbook.getWorkbook(new File("test1.xls"))
)
sheet = workbook.getSheet(0)
setting = sheet.getSettings()
footer = new HeaderFooter()
footer.getRight().appendPageNumber()
footer.getRight().append("/")
footer.getRight().appendTotalPages()
footer.getRight().append("頁")
setting.setFooter(footer)
workbook.write()
workbook.close()
サンプルExcelブック(test1.xls)
出力Excel(test46.xls)
動作環境
groovy 1.7.0, JDK6 Upadate18, JExcelAPI 2.6.12
0 件のコメント:
コメントを投稿