Package net.sf.jasperreports.view

Examples of net.sf.jasperreports.view.JRViewer


    map.put(ApplicationConsts.FUNCTION_CODE_SYS06,headerFormPanel.getFunctionId());
    map.put(ApplicationConsts.EXPORT_PARAMS,params);
    Response res = ClientUtils.getData("getJasperReport",map);
    if (!res.isError()) {
      JasperPrint print = (JasperPrint)((VOResponse)res).getVo();
      JRViewer viewer = new JRViewer(print);
      JFrame frame = new JFrame();
      frame.setSize(MDIFrame.getInstance().getSize());
      frame.setContentPane(viewer);
      frame.setTitle(this.getTitle());
      frame.setIconImage(MDIFrame.getInstance().getIconImage());
View Full Code Here


      map.put(ApplicationConsts.FUNCTION_CODE_SYS06,headerFormPanel.getFunctionId());
      map.put(ApplicationConsts.EXPORT_PARAMS,params);
      res = ClientUtils.getData("getJasperReport",map);
      if (!res.isError()) {
        JasperPrint print = (JasperPrint)((VOResponse)res).getVo();
        JRViewer viewer = new JRViewer(print);
        JFrame frame = new JFrame();
        frame.setSize(MDIFrame.getInstance().getSize());
        frame.setContentPane(viewer);
        frame.setTitle(this.getTitle());
        frame.setIconImage(MDIFrame.getInstance().getIconImage());
View Full Code Here

    map.put(ApplicationConsts.FUNCTION_CODE_SYS06,headerFormPanel.getFunctionId());
    map.put(ApplicationConsts.EXPORT_PARAMS,params);
    Response res = ClientUtils.getData("getJasperReport",map);
    if (!res.isError()) {
      JasperPrint print = (JasperPrint)((VOResponse)res).getVo();
      JRViewer viewer = new JRViewer(print);
      JFrame frame = new JFrame();
      frame.setSize(MDIFrame.getInstance().getSize());
      frame.setContentPane(viewer);
      frame.setTitle(this.getTitle());
      frame.setIconImage(MDIFrame.getInstance().getIconImage());
View Full Code Here

    map.put(ApplicationConsts.FUNCTION_CODE_SYS06,headerFormPanel.getFunctionId());
    map.put(ApplicationConsts.EXPORT_PARAMS,params);
    Response res = ClientUtils.getData("getJasperReport",map);
    if (!res.isError()) {
      JasperPrint print = (JasperPrint)((VOResponse)res).getVo();
      JRViewer viewer = new JRViewer(print);
      JFrame frame = new JFrame();
      frame.setSize(MDIFrame.getInstance().getSize());
      frame.setContentPane(viewer);
      frame.setTitle(this.getTitle());
      frame.setIconImage(MDIFrame.getInstance().getIconImage());
View Full Code Here

    map.put(ApplicationConsts.FUNCTION_CODE_SYS06,headerFormPanel.getFunctionId());
    map.put(ApplicationConsts.EXPORT_PARAMS,params);
    Response res = ClientUtils.getData("getJasperReport",map);
    if (!res.isError()) {
      JasperPrint print = (JasperPrint)((VOResponse)res).getVo();
      JRViewer viewer = new JRViewer(print);
      JFrame frame = new JFrame();
      frame.setSize(MDIFrame.getInstance().getSize());
      frame.setContentPane(viewer);
      frame.setTitle(this.getTitle());
      frame.setIconImage(MDIFrame.getInstance().getIconImage());
View Full Code Here

    map.put(ApplicationConsts.FUNCTION_CODE_SYS06,headerFormPanel.getFunctionId());
    map.put(ApplicationConsts.EXPORT_PARAMS,params);
    Response res = ClientUtils.getData("getJasperReport",map);
    if (!res.isError()) {
      JasperPrint print = (JasperPrint)((VOResponse)res).getVo();
      JRViewer viewer = new JRViewer(print);
      JFrame frame = new JFrame();
      frame.setSize(MDIFrame.getInstance().getSize());
      frame.setContentPane(viewer);
      frame.setTitle(this.getTitle());
      frame.setIconImage(MDIFrame.getInstance().getIconImage());
View Full Code Here

        new HashMap<String, Serializable>(),
        new JRBeanCollectionDataSource(pojos));
      JasperExportManager.exportReportToPdf(print);
//      JasperViewer.viewReport(print, false);
           
            return (Object) new JRViewer(print);
    }
    catch (JRException e)
    {
      e.printStackTrace(System.err);
    }
View Full Code Here

    super();
    initGUI();
    try
    {
      {
        JRViewer viewer = new JRViewer(jp);
        pnlMain.add(viewer, BorderLayout.CENTER);
        viewer.setPreferredSize(new java.awt.Dimension(647, 451));
        viewer.setAutoscrolls(true);
      }
    }
    catch (Exception e)
    {
View Full Code Here

    super();
    initGUI();
    try
    {
      {
        JRViewer viewer = new JRViewer(jp);
        viewer.setZoomRatio((float) 0.75);
        pnlMain.add(viewer, BorderLayout.CENTER);
        viewer.setPreferredSize(new java.awt.Dimension(647, 451));
        viewer.setAutoscrolls(true);
      }
    }
    catch (Exception e)
    {
View Full Code Here

    private ReportPreview(java.awt.Frame parent, boolean modal, JasperPrint report) {
        super(parent, modal);
        initComponents();
   
    setLocale(JasperFormReporter.RUS_LOCALE);
    viewer = new JRViewer(report, JasperFormReporter.RUS_LOCALE);
    add(viewer);
    viewer.setZoomRatio(1);

    Toolkit toolkit = Toolkit.getDefaultToolkit();
    Dimension screenSize = toolkit.getScreenSize();
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.view.JRViewer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.