Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

save a report as an excel file

 
JayaSiji Gopal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a jsp page, which queries the db2 database (uses MVC architecture) to get a resultset, based on search criteria specified.

The query works fine, and the results get displayed. When I click on "Export to Excel", it opens up the File Download dialog box.

The problem is :

1- I need to click 2 times on the "Open" button to open up the report.
2- The first column header is present, but the first column data is missing from the report.

The data is present in the result set. but it is not reaching the jsp page.

Any ideas,
 
Praveen palukuri
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
we have one Package in java to create excelsheet and place the data into that. i.e.,

org.apache.poi.hssf.usermodel.*;

Refer to this.

We created excelsheet and filled with data using above package in my project.

Regards,
Praveen.
 
JayaSiji Gopal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you for the reply, I am aware of the POI tool. However, they are not using it in this project.
 
Carol Enderlin
drifter
Ranch Hand
Posts: 1364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
TellTheDetails...

Your original post indicates what the problems are, but not what your code is. What code is called when user clicks on "Export to Excel"?
 
Dhanya Palanisamy
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


Is Export to Excel a button in your JSP? Are you exporting a html table(containing result set data) to Excel? How you are trying to export?
Give details.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic