Jump to content
We've recently updated our Privacy Statement, available here ×

Unable to export to a XLS file


raphy

Recommended Posts

Hello,

I am trying to export a report to a Excel file. But I have received a message error as follows:

Code:
java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFCellStyle

on line :

Code:
[code]JRXlsExporter exporter = new JRXlsExporter() ;

Please tell me if anybody have an idea to resolve this problem.

Best regards

Raphy

Link to comment
Share on other sites

  • 1 year later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hello!

This problem is due to missing of POI library.

This problem can be solved by downloading the Apache POI labrary from http://poi.apache.org/.

Download the Zip folder Extract the folder and add JAR files in the Project Library. The Problem is solved and xls files are generated successfully.

Regards,

Vajahat Ali ,Software Engineer,Lahore, Pakistan

 

:)

Link to comment
Share on other sites

  • 1 year later...

Hi there!

 

I'm having the same problem Raphy mentioned.

I do have poi 2.5.1 included in my project but still getting a runtime exception on the: 'new JRXlsExporter()' line.

 

Is there anybody who might have an idea how to solve this issue?

 

Best regards!

 

Federico

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...