Hallo ihr lieben
Ich erzeuge mittels pdf File Writer eine pdf, welche u.a. eine Tabelle ohne Ramen enthält.
Kann ich hier eine Linie einfügen? Also quasi einen Rahmen unter die erste Zeile, oder einen Ramen über der zweiten Zeile?
Ich erzeuge mittels pdf File Writer eine pdf, welche u.a. eine Tabelle ohne Ramen enthält.
VB.NET-Quellcode
- 'Artikeltabelle
- Dim table As PdfTable = New PdfTable(_page, _contents, _font, 12.0)
- table.TableArea = New PdfRectangle(Leftborder, 50, Leftborder + 170, 190) 'Left, Bottom, Right, Top
- table.SetColumnWidth(15, 25, 60, 15, 25, 25)
- 'Ränder setzen
- table.Borders.SetAllBorders(0.5, Color.White, 0.00, Color.White)
- 'Cell Style ändern
- table.DefaultCellStyle.Alignment = ContentAlignment.MiddleLeft
- Dim centerstyle As PdfTableStyle = table.CellStyle
- centerstyle.Alignment = ContentAlignment.MiddleCenter
- Dim rightstyle As PdfTableStyle = table.CellStyle
- rightstyle.Alignment = ContentAlignment.MiddleRight
- 'Zellen beschriften
- table.Cell(0).Value = "Menge"
- table.Cell(0).Style = centerstyle
- table.Cell(1).Value = "Art. Nr."
- table.Cell(1).Style = rightstyle
- table.Cell(2).Value = "Name"
- table.Cell(3).Value = "Mwst."
- table.Cell(3).Style = centerstyle
- table.Cell(4).Value = "Einzelpreis"
- table.Cell(4).Style = rightstyle
- table.Cell(5).Value = "Gesamtpreis"
- table.Cell(5).Style = rightstyle
- table.DrawRow()
- '[...]
Kann ich hier eine Linie einfügen? Also quasi einen Rahmen unter die erste Zeile, oder einen Ramen über der zweiten Zeile?