Package net.sf.jasperreports.engine

Examples of net.sf.jasperreports.engine.JRException


      workbook.write();
      workbook.close();
    }
    catch (IOException e)
    {
      throw new JRException("Error generating XLS report : " + jasperPrint.getName(), e);
    }
    catch (WriteException e)
    {
      throw new JRException("Error generating XLS report : " + jasperPrint.getName(), e);
    }
  }
View Full Code Here


   */
  public void addGroup(int index, JRDesignGroup group) throws JRException
  {
    if (groupsMap.containsKey(group.getName()))
    {
      throw new JRException("Duplicate declaration of group : " + group.getName());
    }

    JRDesignVariable countVariable = new JRDesignVariable();
    countVariable.setName(group.getName() + "_COUNT");
    countVariable.setValueClass(Integer.class);
View Full Code Here

    {
      sheet.setRowView(y, LengthUtil.twip(lastRowHeight));
    }
    catch (RowsExceededException e)
    {
      throw new JRException("Error generating XLS report : " + jasperPrint.getName(), e);
    }
  }
View Full Code Here

    {
      sheet.addCell(new Blank(colIndex, rowIndex, cellStyle));
    }
    catch (RowsExceededException e)
    {
      throw new JRException("Error generating XLS report : " + jasperPrint.getName(), e);//FIXMENOW raise same exception everywhere
    }
    catch (WriteException e)
    {
      throw new JRException("Error generating XLS report : " + jasperPrint.getName(), e);
    }
  }
View Full Code Here

    {
      sheet.addCell(cell2);
    }
    catch (Exception e)
    {
      throw new JRException("Can't add cell.", e);
    }
  }
View Full Code Here

    {
      sheet.addCell(cell2);
    }
    catch (Exception e)
    {
      throw new JRException("Can't add cell.", e);
    }
  }
View Full Code Here

       
        addCell(col, row, text, textStr, baseStyle);
      }
      catch (Exception e)
      {
        throw new JRException("Can't add cell.", e);
      }
    }
  }
View Full Code Here

          sheet.mergeCells(x, y, (x + gridCell.getColSpan() - 1), (y + gridCell.getRowSpan() - 1));
        }
      }
      catch (JXLException e)
      {
        throw new JRException("Can't merge cells.", e);
      }
    }
  }
View Full Code Here

            );
        sheet.addImage(image);
      }
      catch (Exception ex)
      {
        throw new JRException("The cell cannot be added", ex);
      }
      catch (Error err)
      {
        throw new JRException("The cell cannot be added", err);
      }
    }
  }
View Full Code Here

        this.loadedFonts.add(cellFont);
      }
    }
    catch (Exception e)
    {
      throw new JRException("Can't get loaded fonts.", e);
    }

    return cellFont;
  }
View Full Code Here

TOP

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

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.