Standalone java class not working in Jasper scriptlent

Jaspersoft Community 'Read-Only' as of July 8, 2022

Transition to New TIBCO Community Just Weeks Away

You can still search, review wiki content, and review discussions in read-only mode. Please email community@tibco.com with questions or issues requiring TIBCO review or response.

I want the docx document with the following things as in MS word document
   1)Header and footer(edit of this should be applicable to all pages)
   2)Edit a cell of table should rearrange the table size and page numbers.

So,I have created standlone java class to generate docx file with global header and footer using Apache POI 3.16. But when i try to import the same class in japser scriptlet i am getting error 'Error loading scriptlet class'.

Can anyone explain, is there any limitations to load jar files in scriptlet or what types of java class/jar files (like classes having return statement) can be used in jasper scriptlet.

Or how can i use the standalone document write class file in jasper. If it is not possible is there any alternate ways to achieve the same output?

Muthukumaran M's picture
Joined: Jul 25 2017 - 7:10am
Last seen: 4 years 9 months ago

1 Answer:

Probably because JasperReports itself is using Apache POI 3.15 so you have version conflict.

hozawa's picture
131818
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 years 3 weeks ago
Feedback
randomness