Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / April 2005

Tip: Looking for answers? Try searching our database.

how to pass Userdefined Object in Jasper Report (In form of parameter)?

Thread view: 
Hiral Thoria - 01 Mar 2005 08:49 GMT
hello everyone!
i m generating reports using Jasper Reports and using iReport as visula
editor,
i m also passing parameters, all works well

but i don't know how to pass a Object of a Userdefined class
(i have build a class Employee with  salary-double and name-string)
i want to pass object of class Employee to Jasper Report and display values
of name and salary....
is it possible...if yes the how?
plz help me out

Thank You
Carlus Henry - 01 Apr 2005 04:56 GMT
I have done something similar to this, but not quite exactly like this.

I had a need to build a report and I already had some code that was
doing the same kind of thing.  The customer just wanted a hard copy of
it.  What I did was, I used a CustomDataSource.

I unfortunately do not have the code with me now, but if you look in the
samples section of the jasper download, you will see a sample called
datasource.  There are many options here that will allow you to use a
custom datasource in order to fill the values of the report.

In my case, I made my report very dumb, and had an object responsible
for filling in the values.

I hope this helps.

Thanks
Carlus

> hello everyone!
> i m generating reports using Jasper Reports and using iReport as visula
[quoted text clipped - 9 lines]
>
> Thank You


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.