Examples of CutsInfo


Examples of net.sf.jasperreports.engine.export.CutsInfo

  /**
   *
   */
  protected void exportGrid(JRGridLayout gridLayout, JRPrintElementIndex frameIndex) throws JRException
  {
    CutsInfo xCuts = gridLayout.getXCuts();
    JRExporterGridCell[][] grid = gridLayout.getGrid();

    if (grid.length > 0 && grid[0].length > 63)
    {
      throw new JRException("The DOCX format does not support more than 63 columns in a table.");
View Full Code Here

Examples of net.sf.jasperreports.engine.export.CutsInfo

  /**
   *
   */
  protected void exportGrid(JRGridLayout gridLayout, JRPrintElementIndex frameIndex) throws IOException, JRException
  {
    CutsInfo xCuts = gridLayout.getXCuts();
    JRExporterGridCell[][] grid = gridLayout.getGrid();

    TableBuilder tableBuilder = frameIndex == null
      ? new TableBuilder(reportIndex, pageIndex, tempBodyWriter, tempStyleWriter)
      : new TableBuilder(frameIndex.toString(), tempBodyWriter, tempStyleWriter);

   
    tableBuilder.buildTableStyle(gridLayout.getWidth());
    tableBuilder.buildTableHeader();

    for(int col = 1; col < xCuts.size(); col++)
    {
      tableBuilder.buildColumnStyle(
          col - 1,
          xCuts.getCut(col) - xCuts.getCut(col - 1)
          );
      tableBuilder.buildColumnHeader(col - 1);
      tableBuilder.buildColumnFooter();
    }

View Full Code Here

Examples of net.sf.jasperreports.engine.export.CutsInfo

            .getPageHeight(), globalOffsetX, globalOffsetY, null //address
    );

    JRExporterGridCell[][] grid = layout.getGrid();

    CutsInfo xCuts = layout.getXCuts();
    CutsInfo yCuts = layout.getYCuts();

    StringBuffer rowbuffer = null;

    JRPrintElement element = null;
    String text = null;
    boolean isFirstColumn = true;

    for (int y = 0; y < grid.length; y++)
    {
      rowbuffer = new StringBuffer();

      if (yCuts.isCutNotEmpty(y))
      {
        isFirstColumn = true;

        for (int x = 0; x < grid[y].length; x++)
        {
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.