Jump to content
JasperReports Library 7.0 is now available ×

How to create in-memory JRDesignSubreport?


Recommended Posts

By: the_nerd - the_nerd

How to create in-memory JRDesignSubreport?

2006-03-24 10:40

hello,

 

I`m trying to create a JasperDesign in-memory with several SubReports.

---------------------

JRDesignSubreport designSubreport = new JRDesignSubreport(styleProvider);

---------------------

 

Now I want to set the values for:

- "DataSourceExpression" and the

- "ParameterMapExpression"

 

I can`t figure out how to pass a HashMap to the method

---------------------

- designSubreport.setParametersMapExpression(...);

-----------------------

and an Object implementing the interface JRDataSource to the method

----------------------------

- designSubreport.setDataSourceExpression(...)

--------------------------

 

Both of them needs a JRExpression as a parameter and I don`t know how to use this....

It would be very nice if someone can help me :)

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