Here's a code snippet that adds the text:
Code:
paragraph = section.Footers.Primary.AddParagraph();
FormattedText ft = paragraph.AddFormattedText("AppName", TextFormat.Bold);
ft.Font.Size = 6;
paragraph.AddTab();
paragraph.AddPageField();
paragraph.AddTab();
ft = paragraph.AddFormattedText("More info (bold) " + ApplicationSettings.Berichtsjahr, TextFormat.Bold);
ft.Font.Size = 6;
ft = paragraph.AddFormattedText(" and more info (not bold)", TextFormat.NotBold);
ft.Font.Size = 6;
We use three tab stops.
The code that sets the tab stops:
Code:
Style style;
style = document.Styles[StyleNames.Footer];
style.ParagraphFormat.TabStops.Clear();
style.ParagraphFormat.AddTabStop(center.ToString(CultureInfo.InvariantCulture) + "cm", TabAlignment.Center);
style.ParagraphFormat.AddTabStop(paperwidth.ToString(CultureInfo.InvariantCulture) + "cm", TabAlignment.Right);
You don't need the "center" tab stop, so only use a single AddTab().