[#4128] - Support adding Excel's Page Header when exporting in xls format

Category:
Enhancement request
Priority:
Normal
Status:
Resolved
Project: Severity:
Minor
Resolution:
Fixed
Component: Reproducibility:
N/A
Assigned to:

Currently, only text string can be set to excel page header/footer using properties such as
net.sf.jasperreports.export.xls.sheet.header.right

If I set the value to "&[Page]", it is exported as a string and is not evaluated until the Header/Footer is opened from Excel.
It would be nice to have &[Page], &[Date], &[Time],&[Pages],&[File],&[Tab] supported.

hozawa's picture
177961
Joined: Apr 24 2010 - 4:31pm
Last seen: 4 years 12 hours ago

4 Comments:

#1
  • Assigned:nobody»

Attached is a source code fix to support exporting &[Page], &[Date], &[Time],&[Pages],&[File],&[Tab] in Excel headers. Just replace the code in JasperReports JExcelApiExporter.java and rebuild.

AttachmentSize
Plain text icon jexcelapiexporter.txt5.26 KB
#2
  • Reproducibility:Always» N/A
  • Status:New» Feedback Requested
  • Assigned:» hozawa

Is the JExcelApiExporter.java file part of the Jaspersoft Studio Professional 5.6.1? I have scanned both the server and studio libraries and have not found the file.

#3

It's part of JasperReports jar. jasperreports-x.x.x-project.zip contains the source files.
http://sourceforge.net/projects/jasperreports/files/jasperreports/

#4
  • Resolution:Open» Fixed
  • Status:Feedback Requested» Resolved
Feedback