Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docx Export: Last Page Footer overflow to the next page #435

Open
dev000il opened this issue May 13, 2024 · 3 comments
Open

Docx Export: Last Page Footer overflow to the next page #435

dev000il opened this issue May 13, 2024 · 3 comments

Comments

@dev000il
Copy link

hi there:
when i tryed to set the property 'net.sf.jasperreports.export.docx.flexible.row.hegiht' to the report,i found some static text of element Last Page Footer overflow to the next page, it is not corrected loaction on the foot of the last page.
i was new to the jasper , hope for some advice
Thanks

@teodord
Copy link
Collaborator

teodord commented May 13, 2024

You need to attach some files here so that we can see the problem. The JRXML is important.

Thanks,
Teodor

@dev000il
Copy link
Author

here is my report file
ReturnOrderForMoney.zip

@teodord
Copy link
Collaborator

teodord commented May 14, 2024

Are you sure that the font you are using (微软雅黑) exists both on the machine that generates the report and also on the machine where the DOCX file is viewed? If it indeed exists, is it really the same TTF as the one you have mentioned in your JRXML (MSYH.TTF)?
The recommended way to ensure the font exists on the machine that runs the report is to package it up as a JasperReports font extension (using Jaspersoft Studio). If you do that, you would not need the pdfFontName, pdfEncoding and isPdfEmbedded attributes in JRXML anymore as they are somewhat deprecated by the introduction of font extensions many years ago.
Also, to ensure the font exists on the machine that views the DOCX file, you can embed the font into the DOCX by setting this property:
https://jasperreports.sourceforge.net/config.reference.html#net.sf.jasperreports.export.docx.embed.fonts

I hope this helps.
Teodor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants