473,395 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to create a report

Hi all!

How can I create a report from a Java application?
I've been developing a (small) JDBC app that retrieves invoice data giving
its number.
(I'm using a Swing GUI)
The app works fine so I can get all info I need from my network database.

I just don't know how to create a formatted output report!
The report should be viewed and/or printed.

I've been looking in huge Sun's Tutorials - no luck!
Where should I look for? Doesn't Java provides some way to do it? Do I need
additional software?
(I'm using J2SE 5.0 JDK with NetBeans 4.0)
Can someone help?
Thanks in advance,
Jorge Cecilio
Jul 17 '05 #1
3 4480
Jorge Cecílio wrote:
Hi all!

How can I create a report from a Java application?
I've been developing a (small) JDBC app that retrieves invoice data giving
its number.
(I'm using a Swing GUI)
The app works fine so I can get all info I need from my network database.

I just don't know how to create a formatted output report!
The report should be viewed and/or printed.

I've been looking in huge Sun's Tutorials - no luck!
Where should I look for? Doesn't Java provides some way to do it? Do I need
additional software?
(I'm using J2SE 5.0 JDK with NetBeans 4.0)
Can someone help?
Thanks in advance,
Jorge Cecilio


I'd look into converting the ResultSets to XML, then use a parser to
transform the data via XSLT. A bit cumbersome, it would seem, but you
may end up liking the ease of use and ease of changing the output using
a simple tool like VI. I don't know if there is a HTML viever component
in Java these days, but if there is, transform the XML to XHTML for
viewing. Printing should then also be a breeze.

Cheers,
Jul 17 '05 #2
Have a look at Scribe: www.reportgenerator.org.

The Enterprise version comes with the API library to let your app run
reports programmatically. The reports can be PDF or HTML formatted, or can
be displayed in your JFrame.

I posted an ad in comp.lang.java.announce yesterday, but it usually takes a
few days before any post shows up there.

Alex Molochnikov
Gestalt Corporation
"Jorge Cecílio" <ce*****@equitubos.pt> wrote in message
news:cq**********@news1.stadia.fi...
Hi all!

How can I create a report from a Java application?
I've been developing a (small) JDBC app that retrieves invoice data giving
its number.
(I'm using a Swing GUI)
The app works fine so I can get all info I need from my network database.

I just don't know how to create a formatted output report!
The report should be viewed and/or printed.

I've been looking in huge Sun's Tutorials - no luck!
Where should I look for? Doesn't Java provides some way to do it? Do I need additional software?
(I'm using J2SE 5.0 JDK with NetBeans 4.0)
Can someone help?
Thanks in advance,
Jorge Cecilio

Jul 17 '05 #3
Jorge Cecílio wrote:
Hi all!

How can I create a report from a Java application?
I've been developing a (small) JDBC app that retrieves invoice data giving
its number.
(I'm using a Swing GUI)
The app works fine so I can get all info I need from my network database.

I just don't know how to create a formatted output report!
The report should be viewed and/or printed.

I've been looking in huge Sun's Tutorials - no luck!
Where should I look for? Doesn't Java provides some way to do it? Do I need
additional software?
(I'm using J2SE 5.0 JDK with NetBeans 4.0)
Can someone help?
Thanks in advance,
Jorge Cecilio

You may look at the Jasper reports. For more information, visit
http://jasperreports.sourceforge.net/

Hope it helps.

Thanks.

--
Hiren
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Donna Sabol | last post by:
First, I should start by saying I am creating a database to be used by some very impatient, non-computer literate people. It needs to be seameless in it's operation from their point of view. I...
1
by: intl04 | last post by:
I am getting strange print-related error messages when trying to create (not print!) reports. For example, when I click 'new' to create a report then choose 'design view', I get an error message...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
7
by: Ross Hamilton | last post by:
I have a Report that creates a Catalogue of Products we sell under various Headings eg: Books, Recordings, Health Food, Diet Foods, etc There are 82 Headings and a total of 6000+ products...
9
by: badboybrown | last post by:
Hello, Is it possible to step through the "Create MDE" process and see what is causing Access to crash? I tried, unsuccessfully, many times to create an MDE from my database. But, randomly, I...
4
by: VMI | last post by:
For my website, I created CrystalReportTest.rpt (through the designer in VS 2005) and I'd like to be able to display it in viewer.aspx (all in the same project). Viewer.aspx has a Crystal Report...
9
by: itmags | last post by:
I need to create a couple of reports, invoices, credit reports, etc... My question is: How/what is the best way to go about this using VB2005 / SQL Server 2000 Crystal Reports? MS Reporting?...
3
by: Vayse | last post by:
I have a report which has several sub reports. Each sub report starts on its own page, and may be 2 or 3 pages long. I'd like to create an index on the first page of the main report. Something...
3
by: creative1 | last post by:
Here is how you create a complex data report that involves parent and child commands and you can update information at runtime. Its pretty straight forward to work with simple queries; however,...
6
by: Steve | last post by:
I have a 2 unmatched queries Table1_view (records in table1 not in table2) Table2_view (records in table2 not in table1) Both table contain fields ReportID ReportName ReportOwner In_Table1...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.