Hallo,
soweit bin ich bis jetzt:
wie mache ich es jetzt dass sie Summenzeile 3 Zeilen (und nicht nur eine) hat? In meinem Fall wäre das xReihe, xReihe-1 und xReihe-2
soweit bin ich bis jetzt:
VB.NET-Quellcode
- Dim oTable As Word.Table
- Dim xReihe As Integer = DGVPositionen.RowCount * 3 + 3
- Dim aReihe As Integer = 1
- Dim xFehler As Boolean = False
- If xDoc.Range.Bookmarks.Exists("Tabelle1") Then
- oTable = xDoc.Tables.Add(xDoc.Bookmarks.Item("Tabelle1").Range, xReihe, 8)
- oTable.AutoFitBehavior(Word.WdAutoFitBehavior.wdAutoFitContent) 'paßt sich an Text an
- Try
- oTable.Style = "ABCrm"
- Catch
- Hauptmenü.messageart = "Information"
- Hauptmenü.messagetext = "Es gibt kein korrekte Tabellenformatvorlage in dieser Vorlage"
- MessageboxInfo.ShowDialog()
- End Try
- 'oTable.Range.ParagraphFormat.SpaceAfter = 6
- oTable.ApplyStyleLastRow = True 'Aktiviert die Summenzeile
wie mache ich es jetzt dass sie Summenzeile 3 Zeilen (und nicht nur eine) hat? In meinem Fall wäre das xReihe, xReihe-1 und xReihe-2