• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How 2 Get reports

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Joel Salatin has signs on his property that say "Trespassers will be Impressed!" Impressive tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic