---
title: "导出excel模版中带有批次"
author: "koreyoshi"
date: "2012-06-20T11:27:33Z"
tags: ["导出Excel", "带批次"]
categories: ["行业应用"]
slug: "excel"
draft: false
lastmod: "2012-06-20T11:28:40Z"
id: 1564555
url: "https://koreyoshi.iteye.com/blog/1564555"
---

--创建单元格

WritableCell cell = new Label(colIndex, rowIndex, value == null ? "" : value.toString(), format);

WritableCellFeatures ft = new WritableCellFeatures();

--设置批注内容  
ft.setComment("这里填写批注内容");

--给单元格设置批注  
cell.setCellFeatures(ft);

sheet.addCell(cell);

 

思考:如何实现任意列设置批注?