hamset_0328 Posted January 8, 2020 Share Posted January 8, 2020 I have the following code: try { String path = "C:\Users\hamse\JaspersoftWorkspace\MyReports\Conduce.jasper"; JasperReport reporte = (JasperReport) JRLoader.loadObjectFromFile(path); JasperPrint jp = JasperFillManager.fillReport(reporte, null, cn); JasperViewer jv = new JasperViewer(jp); jv.setVisible(true); } catch (JRException e) { // TODO Auto-generated catch block e.printStackTrace(); JOptionPane.showMessageDialog(null,"Error: "+e); } 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