File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes best way to display reports in netbeans gui Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "best way to display reports in netbeans gui" Watch "best way to display reports in netbeans gui" New topic

best way to display reports in netbeans gui

Paul Agola

Joined: Jul 03, 2012
Posts: 23
down vote favorite i have menu item (NetBeans) that when pressed needs to generate a report on a linux machine. Do you have any idea on what would be th ebest way to display the form should i

Use iReport and Jasper Reports

Display the information in some sort of jdialogue form that pops up once the menu item is selected.

The way i produce the report might be insufficient. I use a c-shell script to read the call a sql script to read the information from the database and then dump it into a txt file. I want to read this text file and produce an offical report either using ireport or on a jdialue form. From reviewing ireport it seems like i dont have to use this method. I can run the sql script directly from ireport and generate the rpeort? problem is i am on a linux machine and im not sure ireports will work well plus this will be a long term effort to build a desktop gui and im wondering if this is the right apporach . Does iReport have reliable support and will it work with the latest netbeans releasde? anyone with experience may answer
Paul Agola

Joined: Jul 03, 2012
Posts: 23
does anyone have any recent tutorials on jasper repoprts and ireport for netbeans 7.1.2?
Ranganathan Kaliyur Mannar

Joined: Oct 16, 2003
Posts: 1101

First of all, you have to understand a bit about JasperReports and iReport. JasperReports is a reporting engine - you design your reports in the form of an xml, but has an extension of .jrxml. JasperReports provides Java api calls which will read this file and generate a report in the form of html/pdf/image. iReport is a designer with which you can desgin .jrxml files by dragging/dropping stuff and basically a WYSIWYG editor for Jasper (jrxml files).
This link from the Jasper home page shows you how to generate a pdf output from a Jasper report in a normal Java app. A quick google search for Jasper & Swing brings up many examples like this.
As Java runs in Linux, you can develop this easily.

And, as you can see, this has nothing to do with NetBeans.

I agree. Here's the link:
subject: best way to display reports in netbeans gui
It's not a secret anymore!