Jump to content
We've recently updated our Privacy Statement, available here ×

Fill a dataset with an empty datasource


nathalie

Recommended Posts

Hello everyone, 

I'm searching to fill a dataset with an empty datasource to display some images in a table (TableComponent) without any data to query. Actually I'm trying to replace this line of a jrxml : 

<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.JREmptyDataSource(1)]]></dataSourceExpression>

by a Java code line, but I don't know what JRExpression I need to create to fill the parameter of the method setDataSourceExpression of the class JRDesignDatasetRun.

If someone can help me please... 

Nath

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