Jump to content
Changes to the Jaspersoft community edition download ×

Map cols with text field (very urgent)


Recommended Posts

By: subesingh - subesingh1

Map cols with text field (very urgent)

2006-04-17 06:24

Hi

 

Can any one tell me how to map column with a text field in case when javabean class is used as a datasource. I am facing the following problem.

 

package com.klgsystel.vidushi.billing.printing;

 

import javax.swing.table.AbstractTableModel;

import java.util.Collection;

import java.util.Arrays;

import net.sf.jasperreports.engine.JRField;

import net.sf.jasperreports.engine.JRDataSource;

import net.sf.jasperreports.engine.JRException;

 

 

 

public class PrintBillDataSource

{

 

 

/**

*

*/

 

private static Object[] data;

 

 

public PrintBillDataSource(Object[] data0)

{

data = new Object[] { new CustomBean()};

}

 

 

/**

*

*/

public static Object[] getBeanArray()

{

return data;

}

 

 

/**

*

*/

public static Collection getBeanCollection()

{

return Arrays.asList(data);

}

 

 

 

 

}

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