Jemand 'ne Idee, was hier passiert?ich habe ein Code-Sahnestück gefundenCode: Alles auswählen
page.ContentRange.Tables public static void EnumerateSteps() { int lastStepNr = 0; foreach (ContentPage page in ScreenPlayTemplate.ContentPages) { int tableCount = 1; foreach (Word.Table table in page.ContentRange.Tables) { if (tableCount == 3) { foreach (Word.Row row in table.Rows) { foreach (Word.Cell cell in row.Cells) { if (cell.ColumnIndex == 1 && cell.RowIndex > 1) { lastStepNr++; cell.Range.Text = String.Format("{0}.", lastStepNr); } } } } tableCount++; } } }

(PS: Erinnert mich an ein Fundstück, dass ich selbst gefunden habe - nicht in meinem Code(!): Noch ein Sahnestück)