C
C#15mo ago
Cryy

❔ Tabs in GemBox.Document

Hey guys, I'm "migrating" from Syncfusion to Gembox.Document and everything works fine but I have some issue with creating footer. Our previous code for syncfusion created footer using Tabs like this:
var footerPar = section.HeadersFooters.Footer.AddParagraph();
footerPar.ParagraphFormat.Tabs.AddTab(410f, TabJustification.Centered, TabLeader.NoLeader);
footerPar.ParagraphFormat.Tabs.AddTab(820f, TabJustification.Right, TabLeader.NoLeader);

var left = footerPar.AppendText("Some text\t");
ApplyNormalStyle(left.CharacterFormat, false);

var center = footerPar.AppendText($"Some date \t");
ApplyNormalStyle(center.CharacterFormat, false);

var right = footerPar.AppendText(" Page ");
ApplyNormalStyle(right.CharacterFormat, false);
var footerPar = section.HeadersFooters.Footer.AddParagraph();
footerPar.ParagraphFormat.Tabs.AddTab(410f, TabJustification.Centered, TabLeader.NoLeader);
footerPar.ParagraphFormat.Tabs.AddTab(820f, TabJustification.Right, TabLeader.NoLeader);

var left = footerPar.AppendText("Some text\t");
ApplyNormalStyle(left.CharacterFormat, false);

var center = footerPar.AppendText($"Some date \t");
ApplyNormalStyle(center.CharacterFormat, false);

var right = footerPar.AppendText(" Page ");
ApplyNormalStyle(right.CharacterFormat, false);
but i dont know how to recreate this using GemBox. I'm trying it using Run instances but I dont how how to add SpecialCharacter to it so it does not looks like it should. Any experience with that ? Thank you
1 Reply
Accord
Accord15mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server