This week's book giveaway is in the Artificial Intelligence forum.
We're giving away four copies of Pragmatic AI and have Noah Gift on-line!
See this thread for details.
Win a copy of Pragmatic AI this week in the Artificial Intelligence forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

best way to display reports in netbeans gui  RSS feed

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
0
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
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
does anyone have any recent tutorials on jasper repoprts and ireport for netbeans 7.1.2?
 
Bartender
Posts: 1104
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!