Menu

Merging cells in GridPrint

Help
Terry Hon
2008-09-09
2013-04-10
  • Terry Hon

    Terry Hon - 2008-09-09

    Hi, I would like to merge two adjacent cells that are in 2 different rows together (i.e. I would like to make a cell that spans two rows). Could you please advice me on how to do that?

    Thanks!
    Terry

     
    • Matthew Hall

      Matthew Hall - 2008-09-09

      GridPrint does not support spanning multiple rows.  Currently the only way to do this is to nest a GridPrint with multiple rows inside another GridPrint:

      GridPrint outer = new GridPrint("d, d:g");

      outer.add(new TextPrint("This cell appears to span\nmultiple rows));

      GridPrint inner = new GridPrint("d:g");
      inner.add(new TextPrint("This cell occupies the upper row"));
      inner.add(new TextPrint("This cell occupies the lower row"));

      outer.add(inner);

      I have an idea how we could add support for row spans to GridPrint.  Please fill out a feature request in the tracker and we can discuss it further there.

       
    • Terry Hon

      Terry Hon - 2008-09-09

      Thanks for the quick reply. I've filed a feature request for this.

       

Log in to post a comment.

MongoDB Logo MongoDB