import jxl.*;
import jxl.write.*;
import jxl.format.*;
workbook = Workbook.createWorkbook(
new File("test32.xls"),
Workbook.getWorkbook(new File("test1.xls"))
)
sheet = workbook.getSheet(0)
// A1セルを-90度回転
wc = sheet.getWritableCell(0,0)
cf = new WritableCellFormat(wc.getCellFormat())
cf.setOrientation(Orientation.MINUS_90)
wc.setCellFormat(cf)
sheet.setRowView(0, 13*20*3/* 1/20 of a point */)
workbook.write()
workbook.close()
サンプルExcelブック(test1.xls)
出力Excel(test32.xls)
動作環境
groovy 1.7.0, JDK6 Upadate18, JExcelAPI 2.6.12
0 件のコメント:
コメントを投稿