Jump to content
JasperReports Library 7.0 is now available ×

Getting .japser and data from JasperPrint


Recommended Posts

By: Raghunandhan - raghoo1

Getting .japser and data from JasperPrint

2003-10-09 23:28

I have a .jrprint file (with file name fN) created as follows:

String fN = JasperFillManager.fillReportToFile("NewFiles.jasper", map, jrds);

 

Alternately, I have a JasperPrint object created as:

JasperPrint jp = JasperFillManager.fillReport("NewFiles.jasper", map, jrds);

NewFiles.jasper contains the pure design and jrds contains the data.

 

Now, is it possible for me to get the .jasper and more importantly the data (in form of ResultSet or otherwise) from the .jrprint file or from the JasperPrint object????

The reason Im doing this is as follows:

Suppose I have created a report for the last one week in the server side using Jasper and sent it to the client. I would do this in form of .jrprint file or in form of a JapserPrint object.

After viewing this report, if the user wants a report for the last one day, I would like to take the data from the JasperPrint object or from the .jrprint file and show it to the client.

I cant seem to find ways to do this

 

 

 

 

 

By: Chuck Deal - cdeal

RE: Getting .japser and data from JasperPrint

2003-10-10 05:23

Do it the other way around. Get your ResultSet for the last week and pass that to Jasper. If the user wanted only the last day, then you already have your ResultSet!

 

 

 

 

By: Raghunandhan - raghoo1

RE: Getting .japser and data from JasperPrint

2003-10-10 06:28

Thats what Im already doing. My .jrprint is in the client and has data for the last one week.

My ResultSet is not in the client (as I said Im combining .jasper and data at the server side and sending only the .jrprint to the client).

Now, from the .jrprint in the client, I need to take the data for the last one day alone and generate a report

Hope I am clear

 

 

 

 

By: Chuck Deal - cdeal

RE: Getting .japser and data from JasperPrint

2003-10-10 06:47

I see what you are saying now. Is it not satisfactory for the user to receive the first report, then decide on the second report and make a second request to the server?

 

I don't believe it is possible to get your resultset back from the .jrprint file. Someone else will have to verify that.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...