This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
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.
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.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi