Skip to content

multilevel header table #1396

Answered by Shookk69
Shookk69 asked this question in Q&A
Discussion options

You must be logged in to vote

I found a solution
Instead of rowSpan I used VerticalMergeType.CONTINUE and VerticalMergeType.RESTART

let tableTest  = new Table({
         width: { size: 100, type: WidthType.PERCENTAGE, },
      rows: [
        new TableRow({
          children: [
            new TableCell({ children: [new Paragraph('1')], columnSpan: 1, rowSpan: 1, verticalMerge: VerticalMergeType.RESTART}),
            new TableCell({ children: [new Paragraph('2')], columnSpan: 1, rowSpan: 1, verticalMerge: VerticalMergeType.RESTART}),
            new TableCell({ children: [new Paragraph('3')], columnSpan: 4, rowSpan: 1,}),
            new TableCell({ children: [new Paragraph('4')], columnSpan: 1, rowSpan: 1,}),
     …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Shookk69
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant