List of usage examples for org.apache.poi.hpsf SummaryInformation setRevNumber
public void setRevNumber(final String revNumber)
From source file:se.mithlond.services.content.impl.ejb.report.ExcelReportServiceBean.java
License:Apache License
/** * {@inheritDoc}//from w ww .ja v a2 s .c om */ @Override public Workbook createDocument(@NotNull final Membership activeMembership, @NotNull final String title) { // Check sanity Validate.notNull(activeMembership, "activeMembership"); final HSSFWorkbook toReturn = new HSSFWorkbook(); toReturn.createInformationProperties(); // Add some comments. final SummaryInformation summaryInformation = toReturn.getSummaryInformation(); summaryInformation.setCreateDateTime(new Date()); summaryInformation.setTitle(title); summaryInformation.setAuthor("Nazgl Services Excel Report Generator"); summaryInformation.setSubject("Requested by: " + activeMembership.getAlias()); summaryInformation.setRevNumber("1"); // Add some Document summary information as well. final DocumentSummaryInformation documentSummaryInformation = toReturn.getDocumentSummaryInformation(); final String orgName = activeMembership.getOrganisation().getOrganisationName(); documentSummaryInformation.setCompany(activeMembership.getOrganisation().getOrganisationName()); documentSummaryInformation.setManager(orgName + " is Da Boss of you!"); // All Done. return toReturn; }