Jump to content

Recommended Posts

Posted

Hello,

I have a problem when I try to export to the excel file format (XLS).

The error message as follows:

Exception occurred during event dispatching:

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

 

Error on line: JRXlsExporter exporter = new JRXlsExporter() ;

 

I have already imported this package in my project.

 

All other formats (.pdf, .rtf etc.) working correctly.

 

Thanks for your help

Raphy

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Posted
I had a similiar problem when my report name was too long (something like 32 characters). Not sure if this helps, but something worth checking. When I dug a little deeper it was an error that poi was throwing.
  • 2 months later...
Posted

download the POI jar file from the jakarta site, put it in your classpath and your good to go. and you have to import this, org.apache.poi.hssf.usermodel.*

Post edited by: sazoo, at: 2006/11/28 02:12

  • 2 weeks later...
  • 1 year later...
Posted

honeyani
Wrote:
 

Set classpath to POI jar file and provide proper import statement.Sure it will work..

I saw this post rght now aftr 2 yrs..hope u guys must have fixed it 2 yrs back itself!

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...