jQuery in Action, 3rd edition
The moose likes Other Open Source Projects and the fly likes generate excelsheet report Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "generate excelsheet report" Watch "generate excelsheet report" New topic

generate excelsheet report

sneha anant patel

Joined: Sep 04, 2008
Posts: 9
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?

vijayakumar durai
Ranch Hand

Joined: Aug 18, 2008
Posts: 153
you can give it in jsp page for generating report
<%@ page contentType="application/vnd.ms-excel" %>
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
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.
I agree. Here's the link: http://aspose.com/file-tools
subject: generate excelsheet report
It's not a secret anymore!