Package net.sf.jasperreports.engine

Examples of net.sf.jasperreports.engine.JRPrintPage


  }

  protected void createHyperlinks()
  {
    java.util.List pages = viewerContext.getJasperPrint().getPages();
    JRPrintPage page = (JRPrintPage)pages.get(viewerContext.getPageIndex());
    createHyperlinks(page.getElements(), 0, 0);
  }
View Full Code Here


            if (Thread.interrupted())
            {
              throw new JRException("Current thread interrupted.");
            }

            JRPrintPage page = (JRPrintPage)pages.get(pageIndex);

            document.newPage();
           
            pdfContentByte = pdfWriter.getDirectContent();
View Full Code Here


    List pages = jasperPrint.getPages();
    if (pages != null && pages.size() > 0)
    {
      JRPrintPage page = null;
      for(int i = startPageIndex; i <= endPageIndex; i++)
      {
        if (Thread.interrupted())
        {
          throw new JRException("Current thread interrupted.");
View Full Code Here

          if (Thread.interrupted())
          {
            throw new JRException("Current thread interrupted.");
          }

          JRPrintPage page = (JRPrintPage)pages.get(i);

          /*   */
          exportPage(page);
        }
      }
 
View Full Code Here

            if (Thread.interrupted())
            {
              throw new JRException("Current thread interrupted.");
            }

            JRPrintPage page = (JRPrintPage)pages.get(pageIndex);

            createSheet(getSheetName(null));

            // we need to count all sheets generated for all exported documents
            sheetIndex++;
            sheetNamesIndex++;

            /*   */
            exportPage(page, /*xCuts*/null, /*startRow*/0);
          }
        }
        else
        {
          // Create the sheet before looping.
          createSheet(getSheetName(jasperPrint.getName()));

          // we need to count all sheets generated for all exported documents
          sheetIndex++;
          sheetNamesIndex++;

          /*
           * Make a pass and calculate the X cuts for all pages on this sheet.
           * The Y cuts can be calculated as each page is exported.
           */
          CutsInfo xCuts =
            JRGridLayout.calculateXCuts(
              getNature(), pages, startPageIndex, endPageIndex,
              jasperPrint.getPageWidth(), globalOffsetX
              );
          //clear the filter's internal cache that might have built up
          if (filter instanceof ResetableExporterFilter)
          {
            ((ResetableExporterFilter)filter).reset();
          }
          int startRow = 0;

          for(pageIndex = startPageIndex; pageIndex <= endPageIndex; pageIndex++)
          {
            if (Thread.interrupted())
            {
              throw new JRException("Current thread interrupted.");
            }
            JRPrintPage page = (JRPrintPage)pages.get(pageIndex);
            startRow = exportPage(page, xCuts, startRow);
          }
         
          if (isRemoveEmptySpaceBetweenColumns)
          {
View Full Code Here


  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)
    {
      JRPrintFrame frame = (JRPrintFrame) element;
      element = frame.getElements().get(elementIndexes[i].intValue());
View Full Code Here

        {
          startPageIndex = 0;
          endPageIndex = pages.size() - 1;
        }

        JRPrintPage page = null;
        for(pageIndex = startPageIndex; pageIndex <= endPageIndex; pageIndex++)
        {
          if (Thread.interrupted())
          {
            throw new JRException("Current thread interrupted.");
View Full Code Here

 
      grx.clip(new Rectangle(0, 0, jasperPrint.getPageWidth(), jasperPrint.getPageHeight()));
 
      try
      {
        JRPrintPage page = (JRPrintPage)pages.get(startPageIndex);
        exportPage(page);
      }
      finally
      {
        grx.setClip(oldClipShape);
View Full Code Here


  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)
    {
      JRPrintFrame frame = (JRPrintFrame) element;
      element = frame.getElements().get(elementIndexes[i].intValue());
View Full Code Here

        {
          startPageIndex = 0;
          endPageIndex = pages.size() - 1;
        }

        JRPrintPage page = null;
        for(pageIndex = startPageIndex; pageIndex <= endPageIndex; pageIndex++)
        {
          if (Thread.interrupted())
          {
            throw new JRException("Current thread interrupted.");
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.JRPrintPage

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.