iTextsharp - draw a line at the end and start of a page with tables

后端 未结 2 2000
無奈伤痛
無奈伤痛 2021-01-29 02:54

Selecting records from a table I create iTextsharp\'s Tables one for every first letter of the records

On the picture a table for the \"G\" letter:

\"G\" is a ro

2条回答
  •  渐次进展
    2021-01-29 03:34

    This should be helpful for you: itextsharp: how to show the bottom line of a table with property HeaderRows=1 if border bottom of the row is not set?

    You will need to add some code to draw an additional header line, too e.g.:

    columns = widths[0].Length - 1;
    rect = new Rectangle(widths[0][0], heights[0], widths[0][columns], heights[0]);
    rect.BorderColor = Color.BLACK;
    rect.BorderWidth = 1;
    rect.Border = Rectangle.TOP_BORDER;
    canvases[PdfPTable.BASECANVAS].Rectangle(rect);
    

    4.1.6.0

提交回复
热议问题