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

How 2 Get reports

 
sajeevi bangamuwage
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Im Sajeevi Thathsara. Im developing a computer system. they need some reports generate from the system. Im developing it by using Java language. I can get the data from the DB and put it into the table. i want to export it to an excel and get reports. Im using SQL Server Developer 2000. in that also we can export. But user cnt. so i want to know way to export the data in the table to excel.

i'll on Jfree reports also. But from that can get only PDF files. the excel exporting also can do but i cant get it nicely.

I want some event hanle coding to export data to excel and save that file in the location where we want.

Thank you,
Sajeevi (SCJP)
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Several things you can investigate:

Google for "POI" or other "java com bridge" products that let Java connect to Excel. I don't know if any of the free ones are good enough for production use in a business. Some of them are quite expensive.

Connect to Excel as a database using JDBC/ODBC. You can refer to an Excel named range like a table. I'm not certain this is possible, but I've done it from other languages with ODBC.

Write CSV from your application to a disk file and make the user import CSV.

Put data into the clipboard and invite the user to paste into Excel. Not a real sophisticated solution.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic