aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "generate excelsheet report" Watch "generate excelsheet report" New topic
Author

generate excelsheet report

sneha anant patel
Greenhorn

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?

Thanks,
sneha.
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
Marshal

Joined: Mar 22, 2005
Posts: 42277
    
  64
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.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: generate excelsheet report