?
Solved

How to embed a report ( developed by JReport ) in java application

Posted on 2006-07-24
6
Medium Priority
?
304 Views
Last Modified: 2010-03-31
I have generated a report  using JReport. I want to use this report in my java application. Something like when i click any control ,i should get this report . How can i do it.
0
Comment
Question by:sumashaila
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 24

Accepted Solution

by:
sciuriware earned 1000 total points
ID: 17166921
You can embed files as resources into a .jar
If you can put the file near a certain .class file and
retrieve it as resource, you can also do it running from the .jar later.
The rest depends a bit on the way to display the file (is it HTML?).
;JOOP!
0
 
LVL 30

Assisted Solution

by:Mayank S
Mayank S earned 1000 total points
ID: 17167720
>> Something like when i click any control ,i should get this report

You need to make some AWT/ Swing/ Applet for this:

http://java.sun.com/docs/books/tutorial/uiswing/

You need to handle the button's click (action-event) and then display your report in a panel or something.
0
 
LVL 24

Expert Comment

by:sciuriware
ID: 17378602
OK

;JOOP!
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses
Course of the Month11 days, 19 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question