Jump to content
Changes to the Jaspersoft community edition download ×

Getting data from Java Classes


2006 IR Open Dicussion

Recommended Posts

By: Diogo Oliveira - diogosales

Getting data from Java Classes

2006-03-28 03:27

Hi

I've designed the layout of some JasperReports documents with the help of iReport.

 

Then I developed Java Classes that represent, each one of them, one document, with attributes for every field in the JR layouts.

 

And then I developed reader classes: Java classes with a read () method which, given a document number, gets every data from the database into a document object and returns it.

 

Given this scenario, how can I map a now filled up document object with the corresponding fields on a report? I mean, how can I fill up the fields in a report design object with the data in the attributes of a given java object?

 

My searches resulted in confusing explanations I couldn't get to use. And I'm really tight on schedule, and also given by inexperience with the JasperReports mechanism, I decided to post this hoping someone canm easily enlighten me ;)

 

Thanks in advance for any replies.

 

 

 

 

By: missioncoder - missioncoder

RE: Getting data from Java Classes

2006-03-31 08:40

Hello,

Have you tried using the samples that are included with the iReport package? I found these extremely useful. Are you working on a web based implementation? I'm only asking because that is where I have been doing most of my work. My suggestion is to look at the samples and possibly purchase the iReport manual if you have not already done so. FYI, if you were working on a web based project then this could be done using a JavaBean connection, JDBC, etc.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...