Tab Stops

Jun 12, 2015 at 4:41 PM
Can anyone help me with how to setup tab stops in DocX?

Using Microsoft.Office.Interop.Word, I can do it:
Microsoft.Office.Interop.Word._Application w = new Microsoft.Office.Interop.Word.Application();
                object path = ProjectGlobalVariables.printFile;
                object read = "ReadWrite";
                object readOnly = false;
                object oMissing = System.Reflection.Missing.Value;

Microsoft.Office.Interop.Word._Document oDoc = w.Documents.Open(ref path, ref oMissing, ref readOnly, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing);

Microsoft.Office.Interop.Word.Selection s = w.Selection;

s.Paragraphs.TabStops.Add(((oDoc.PageSetup.PageWidth - oDoc.PageSetup.LeftMargin - oDoc.PageSetup.RightMargin) / 2), WdTabAlignment.wdAlignTabCenter);

s.Paragraphs.TabStops.Add((oDoc.PageSetup.PageWidth - oDoc.PageSetup.LeftMargin - oDoc.PageSetup.RightMargin), WdTabAlignment.wdAlignTabRight);
How can the 'tab stop' feature be added to DocX?
Jul 3, 2015 at 6:09 PM
How can the 'tab stop' feature be added to DocX?