[#2866] - Page header and Footer like MS word document in jasperreport generated word document

Category:
Enhancement request
Priority:
High
Status:
New
Project: Severity:
Critical
Resolution:
Open
Component: Reproducibility:
N/A
Assigned to:

Hi,

I am trying to generate the word (docx) document with Page header and footer like how we generate the document in MS word.

Could you please some one help me how to generate the document with header and Footer using the Jasper reports.

I am attaching the expected output from jasper.

v5.0
iReport Designer
kunkasurendra's picture
Joined: Jun 12 2007 - 3:43pm
Last seen: 5 years 3 weeks ago

11 Comments:

#1
  • Assigned:nobody»
#2
  • Assigned:» teodord
#3

Hi,

Please find the attached enhancement patch to implement Page Header and Page Footer feature of MS word(docx).

AttachmentSize
File 0001-trakr_2866_enhancement.patch29.16 KB
#4

chandan.kumar, please forgive my ignorance. I have questions about the patch.

1. How do you apply the patch?
2. Does this apply to Jasper Studio 6.2 Jasper Server Patch?
3. Does this create valid Page Headers and Footers for docx exports?
4. Are there any additional instructions for creating headers and footers?

#5

Hi dconde_1,
Thanks for your reply. Please see the inline response for your questions:
1. How do you apply the patch?
I used sourceforge hosted(https://sourceforge.net/p/jasperreports/code/ci/master/tree/) git clone to take the source code of Jasperreports. I used the "git format-patch -o " command to create this patch. I'm not an expert in git repository tool but i believe "git apply" command should be used to apply the patch.
2. Does this apply to Jasper Studio 6.2 Jasper Server Patch?
No, this patch is applicable to Jasperreports trunk code.
3. Does this create valid Page Headers and Footers for docx exports?
Yes, this patch will created valid Page Headers and Footers for docx exports.
4. Are there any additional instructions for creating headers and footers?
No, the jrxml file should have a header and footer place holder to be generated with docx.

Please let me know if you have any other query.
Thanks,
Chandan Kumar

#6

Is this patch now included in the newer versions of Jasper Studio? I downloaded a community edition 6.3 yesterday. I created a basic report with a page header with a couple of text fields but when I export the report to Word the page header is not a Word header. Please assist.
Thank you, Jenelle

#7
  • Priority:High» Immediate
#8
  • Priority:Immediate» High
#9

I'm also looking for this feature, but as of now the 'footer' seems to be a table placed at the bottom of the document. Using Jasper reports 6.4.0 (from maven as a java library, not jasper report server). If a patch exists for this could it be incorporated into the codebase?

#10

Hi,

Any news on having the page headers and footers feature in docx export?

#11

Hi, can we hope to see this feature in the Jasper API ?

Feedback