public void setReportHeader() { dtfwh.setDate(new Date()); reportHeader = new StringBuilder(); reportHeader .append("Mshengu Vehicle/Driver Allocation Sheet") .append('\n') .append("Print date : ") .append("\t") .append(dtfwh.getTodayForTbaleFormat()); fileName = "Mshengu_Vehicle_Allocation_" + dtfwh.getTodayForTbaleFormat() + ".xls"; }
public String getFileName() { if (fileName.equals("")) { return fileName = "Mshengu_Vehicle_Allocation_" + dtfwh.getTodayForTbaleFormat() + ".xls"; } else { return fileName; } }