2001 JI Open Discussion Posted August 21, 2006 Share Posted August 21, 2006 By: vinay.s - vinay_csp How to insert contents in to JRPrintPage 2005-06-29 04:47Hi, 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now