Package net.sf.jasperreports.engine.util

Examples of net.sf.jasperreports.engine.util.SimpleFileResolver


      setReport((JRReport) JRLoader.loadObject(fileName));
    }
    this.type = TYPE_FILE_NAME;
    this.isXML = isXmlReport;
    this.reportFileName = fileName;
    this.fileResolver = new SimpleFileResolver(Arrays.asList(new File[]{new File(fileName).getParentFile(), new File(".")}));
    this.fileResolver.setResolveAbsolutePath(true);
  }
View Full Code Here


      parameters = new HashMap();
    }

    if (!parameters.containsKey(JRParameter.REPORT_FILE_RESOLVER))
    {
      SimpleFileResolver fileResolver =
        new SimpleFileResolver(
          Arrays.asList(new File[]{file.getParentFile(), new File(".")})
          );
      fileResolver.setResolveAbsolutePath(true);
     
      parameters.put(
        JRParameter.REPORT_FILE_RESOLVER,
        fileResolver
        );
View Full Code Here

    }

    type = TYPE_FILE_NAME;
    this.isXML = isXmlReport;
    reportFileName = fileName;
    fileResolver = new SimpleFileResolver(Arrays.asList(new File[]{new File(fileName).getParentFile(), new File(".")}));
    fileResolver.setResolveAbsolutePath(true);
    reloadSupported = true;
    fireListeners(JRViewerEvent.EVENT_REPORT_LOADED);
    setPageIndex(0);
  }
View Full Code Here

    }

    type = TYPE_FILE_NAME;
    this.isXML = isXmlReport;
    reportFileName = fileName;
    fileResolver = new SimpleFileResolver(Arrays.asList(new File[]{new File(fileName).getParentFile(), new File(".")}));
    fileResolver.setResolveAbsolutePath(true);
    btnReload.setEnabled(true);
    setPageIndex(0);
  }
View Full Code Here

    long start = System.currentTimeMillis();
    //Preparing parameters
    Map parameters = new HashMap();
    parameters.put("ReportTitle", "Orders Report");

    SimpleFileResolver fileResolver =
      new SimpleFileResolver(
        Arrays.asList(new File[]{new File("build/reports")})
        );
    fileResolver.setResolveAbsolutePath(true);
   
    parameters.put(JRParameter.REPORT_FILE_RESOLVER, fileResolver);
   
   
    JasperReport jasperReport = (JasperReport)JRLoader.loadObject("build/reports/TableOfContentsReport.jasper");
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.util.SimpleFileResolver

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.