SHARE
TWEET

Untitled

a guest Jun 16th, 2019 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void showReport(){
  2.     try{  
  3.  
  4.     JasperReport jasperReport = new JasperCompileManager.compileReport(" C:\Users\PC\Desktop\fxmlTest\src\fxmltest\newReport.jasper");
  5.     JasperPrint jasperPrint   = new JasperFillManager.fillReport(jasperReport,null,connection);      
  6.     JRViewer viewer  = new JRViewer(jasperPrint);
  7.     viewer.setOpaque(true);
  8.     viewer.setVisible(true);
  9.  
  10.     this.add(viewer);
  11.     this.setSize(900,500);
  12.     this.setVisible(true);
  13.  
  14.     }catch(Exception e){
  15.         System.out.println( e.getMessage());
  16.     }
  17. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top