Solved

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

Posted on 2006-07-24
6
289 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
  • 2
6 Comments
 
LVL 24

Accepted Solution

by:
sciuriware earned 250 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 250 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Android studio getdrawable(int) is deprecated 4 43
json example 39 134
firstswap challenge 20 68
groovy example issue 10 90
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…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
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…

867 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now