while(rs.next()){
line++;
ROW row = tableData.addNewROW();
Rep("Exporting record "+ line);
for(int i=0;i<colCount;i++){
COLUMN col = row.addNewCOLUMN();
col.setCOLUMNNAME(columns.getColumnName(i+1));
col.setDATA(getColumnData(rs,i+1,columns.getColumnTypeName(i+1)));
}
}
Rep("Finished!");
doc.save(fHandle);
}