Quantcast
Channel: Word for Developers forum
Viewing all articles
Browse latest Browse all 4350

c# .net 4and word interop dll

$
0
0

Hi,

So sorry if i am posting in the wrong forum. 

I need help with adding a tab stop(position at 1cm) to a word document using word interop and c#. This is what i tried already.

Range range = paragraph.Range;int firstTabStart = range .Start;
range .SetRange(firstTabStart, firstTabStart);
range .Paragraphs.TabStops.Add(5,WdTabAlignment.wdAlignTabRight);

When i open my word document i dont see any tab stops. I can however insert tab alignments using

range .InsertAlignmentTab((int)WdAlignmentTabAlignment.wdCenter,(int)WdAlignmentTabRelative.wdMargin);

Although, these tabs are absolute and I cannot give a measurement alignment or edit them i word 2010 when inserted.

Please help.


Viewing all articles
Browse latest Browse all 4350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>