Report.NET icon indicating copy to clipboard operation
Report.NET copied to clipboard

Function Foot or Merge cell

Open JorgeBeserra opened this issue 7 years ago • 1 comments

Hello .. Good evening,

In time I was looking for something similar to your project and I'm really enjoying implementing your tool, but I had to run a round at the end of the table, and I looked for some foot-type function and I did not find it, is there something similar?

Note I am using the TableLayoutManager, and I would like to add at the end of the lines a last line but with the possibility of merging two columns, I searched for functions but I did not succeed

I will be grateful if you have any solution

sem titulo

JorgeBeserra avatar May 01 '18 03:05 JorgeBeserra

I haven't tested any of this, but I did find something you could try.

TableLayoutManager inherits the tlmRow_New() method that takes an array of CellCreateTypes. https://github.com/ritchiecarroll/Report.NET/blob/master/Root/Reports/LayoutManager/TlmBase.cs#L363

    /// <summary>This method will create a new row.</summary>
    /// <param name="tlmRow_Prev">The new row will be inserted after this row or at the beginning of list.</param>
    /// <param name="aCellCreateType"></param>
    public TlmRow tlmRow_New(TlmRow tlmRow_Prev, CellCreateType[] aCellCreateType)

And here's the CellCreateType enum, with options for merging cells. https://github.com/ritchiecarroll/Report.NET/blob/master/Root/Reports/LayoutManager/TlmBase.cs#L1042

    /// <summary>Cell creation type</summary>
    public enum CellCreateType {
      /// <summary>A new cell will be created for this row</summary>
      New,
      /// <summary>The cell will be merged with the previous cell of the column</summary>
      MergedV,
      /// <summary>The cell will be merged with the left cell of the row</summary>
      MergedH,
      /// <summary>The column will have no cell in this row</summary>
      Empty
    }

StephenCWills avatar May 01 '18 13:05 StephenCWills