WritableWorkbook ww = Workbook.createWorkbook(boas, wr);
WritableSheet ws = ww.getSheet(0);
int irow = 3;
Integer rowPatter = 3;
for (Iterator<UserActivity> iterator = acitivities.iterator(); iterator.hasNext(); ) {
UserActivity user = iterator.next();
//write unit;
if (user.getUser() != null && user.getUser().getUsername() != null) {
writeLabel(ws, "A", irow, rowPatter, user.getUser().getUsername());
writeLabel(ws, "B", irow, rowPatter, user.getUser().getPegawai().getNama());
writeLabel(ws, "C", irow, rowPatter, user.getUser().getPegawai().getNip());
}
writeLabel(ws, "D", irow, rowPatter, (user.getGrup()));
writeLabel(ws, "E", irow, rowPatter, StringUtil.nvl(user.getDescription()));
writeLabel(ws, "F", irow, rowPatter, StringUtil.nvl(user.getIp()));
writeLabel(ws, "G", irow, rowPatter, StringUtil.fromSecond(user.getCreated(), ""));
irow++;
}
ww.write();
ww.close();
} catch (Exception e) {