Jump to content
Changes to the Jaspersoft community edition download ×

How to insert contents in to JRPrintPage


Recommended Posts

By: vinay.s - vinay_csp

How to insert contents in to JRPrintPage

2005-06-29 04:47

Hi,

I am trying to add the data from jasper file to JRPrintPage, but i am getting class cast exception while inserting contentsin to JRBasePrintPage

Here is the code:

 

JasperReport template = JasperManager.loadReport("C:\appReport\FHA203KPg2.jasper");

JRBasePrintPage page = new JRBasePrintPage() ;

ArrayList lst = new ArrayList();

lst.add(template);

page.SetElements(lst);

JasperPrint print = new JasperPrint();

print.addPage(page);

JasperViewer jasperViewer = new JasperViewer(print);

jasperViewer.show();

 

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