• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

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.
 
Get off me! Here, read this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic