Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

generate excelsheet report

 
sneha anant patel
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I am using jsp/servlet for my application.
And MS Access as database.

whenever user request for report(through button ),need to generate ExcelSheet Report by fetching data from database.

Show the report and mail that to perticular user.

How to do this complete task?

Thanks,
sneha.
 
vijayakumar durai
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can give it in jsp page for generating report
<%@ page contentType="application/vnd.ms-excel" %>
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which part are you having problems with - getting the data from the DB, creating an Excel file, streaming the file to the browser, or emailing the file to the user?

For creating an Excel file you can use a library like Apache POI or jExcelApi. You can't stream the file from a JSP, though, because JSPs can't handle binary content. You'll need to do this in a servlet.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic