public static JRViewer get_viewer_all_sales(Srpt_receipt to, String rpt_name) { // Connection con11 = null; try { return JasperUtil.getJasperViewer( compileJasper(rpt_name), JasperUtil.setParameter(to), JasperUtil.makeDatasource(to.fields)); } catch (Exception e) { throw new RuntimeException(e); } finally { } }
public static JRViewer get_viewer_conn(rpt_orders1 to, String rpt_name) { // Connection con11 = null; try { // con11 = MyConnection.connect(); return JasperUtil.getJasperViewer( compileJasper(), JasperUtil.setParameter(to), JasperUtil.emptyDatasource()); } catch (Exception e) { throw new RuntimeException(e); } finally { } }
public static JRViewer get_viewer(Srpt_print_barcodes to, String jrxml) { return JasperUtil.getJasperViewer( compileJasper(jrxml), JasperUtil.setParameter(to), JasperUtil.makeDatasource(to.fields)); }
public static JRViewer get_viewer(Rpt_statement_of_account to, String jrxml) { return JasperUtil.getJasperViewer( compileJasper(jrxml), JasperUtil.setParameter(to), JasperUtil.makeDatasource(to.fields)); }