Examples of JasperPrint


Examples of net.sf.jasperreports.engine.JasperPrint

    Connection conn
    ) throws JRException
  {
    JRBaseFiller filler = createFiller(jasperReport);
   
    JasperPrint jasperPrint = null;
   
    try
    {
      jasperPrint = filler.fill(parameters, conn);
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.JasperPrint

    JRDataSource dataSource
    ) throws JRException
  {
    JRBaseFiller filler = createFiller(jasperReport);
   
    JasperPrint jasperPrint = null;
   
    try
    {
      jasperPrint = filler.fill(parameters, dataSource);
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.JasperPrint

  {
    JRBaseFiller filler = createFiller(jasperReport);

    try
    {
      JasperPrint jasperPrint = filler.fill(parameters);

      return jasperPrint;
    }
    catch (JRFillInterruptedException e)
    {
View Full Code Here

Examples of net.sf.jasperreports.engine.JasperPrint

{

  protected void setParentStyle(JRDesignStyle currentStyle, String parentStyleName)
  {
    JRPrintXmlLoader printXmlLoader = (JRPrintXmlLoader) digester.peek(digester.getCount() - 1);
    JasperPrint jasperPrint = (JasperPrint) digester.peek(digester.getCount() - 2);
    Map stylesMap = jasperPrint.getStylesMap();

    if (!stylesMap.containsKey(parentStyleName))
    {
      printXmlLoader.addError(new JRRuntimeException("Unknown report style : " + parentStyleName));
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.JasperPrint

  }


  public static JRPrintImage getImage(List jasperPrintList, JRPrintElementIndex imageIndex)
  {
    JasperPrint report = (JasperPrint)jasperPrintList.get(imageIndex.getReportIndex());
    JRPrintPage page = (JRPrintPage)report.getPages().get(imageIndex.getPageIndex());

    Integer[] elementIndexes = imageIndex.getAddressArray();
    Object element = page.getElements().get(elementIndexes[0].intValue());

    for (int i = 1; i < elementIndexes.length; ++i)
View Full Code Here

Examples of net.sf.jasperreports.engine.JasperPrint

  /**
   *
   */
  public Object createObject(Attributes atts)
  {
    JasperPrint jasperPrint = (JasperPrint)digester.peek(digester.getCount() - 2);

    JRBasePrintLine line = new JRBasePrintLine(jasperPrint.getDefaultStyleProvider());

    LineDirectionEnum direction = LineDirectionEnum.getByName(atts.getValue(JRXmlConstants.ATTRIBUTE_direction));
    if (direction != null)
    {
      line.setDirection(direction);
View Full Code Here

Examples of net.sf.jasperreports.engine.JasperPrint

    isSummaryNewPage = jasperReport.isSummaryNewPage();
    isSummaryWithPageHeaderAndFooter = jasperReport.isSummaryWithPageHeaderAndFooter();
    isFloatColumnFooter = jasperReport.isFloatColumnFooter();
    whenResourceMissingType = jasperReport.getWhenResourceMissingTypeValue();

    jasperPrint = new JasperPrint();
   
    JRProperties.transferProperties(jasperReport, jasperPrint,
        JasperPrint.PROPERTIES_PRINT_TRANSFER_PREFIX);
   
    if (initEvaluator == null)
View Full Code Here

Examples of net.sf.jasperreports.engine.JasperPrint

        running = true;
      }
     
      try
      {
        JasperPrint print;
        if (conn != null)
        {
          print = filler.fill(parameters, conn);
        }
        else if (dataSource != null)
View Full Code Here

Examples of net.sf.jasperreports.engine.JasperPrint

  public void pdf() throws JRException
  {
    long start = System.currentTimeMillis();
    File sourceFile = new File("build/reports/StylesReport.jrprint");

    JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);

    File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".pdf");

    JRPdfExporter exporter = new JRPdfExporter();

    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
View Full Code Here

Examples of net.sf.jasperreports.engine.JasperPrint

  public void html() throws JRException
  {
    long start = System.currentTimeMillis();
    File sourceFile = new File("build/reports/StylesReport.jrprint");

    JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);

    File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".html");

    JRHtmlExporter exporter = new JRHtmlExporter();

    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.