// Collect Columns from worksheet and add them to the vector
for(Enumeration e = ws.getColInfos();e.hasMoreElements();) {
ColInfo ci = (ColInfo)e.nextElement();
int repeated = ci.getLast() - ci.getFirst() + 1;
ColumnRowInfo colInfo = new ColumnRowInfo( ci.getColWidth(),
repeated,
ColumnRowInfo.COLUMN);
colRowVector.add(colInfo);
}
// Collect Rows from worksheet and add them to the vector
for(Enumeration e = ws.getRows();e.hasMoreElements();) {
Row rw = (Row)e.nextElement();
// We will use the repeat field for number (unlike columns rows
// cannot be repeated, we have unique record for each row in pxl
int repeated = rw.getRowNumber();
ColumnRowInfo rowInfo = new ColumnRowInfo( rw.getRowHeight(),
repeated,
ColumnRowInfo.ROW);
colRowVector.add(rowInfo);
}
Debug.log(Debug.TRACE,"Getting " + colRowVector.size() + " ColRowInfo records");