I would recommend the Visual Basic Help file that comes with Word. Here is
the example from that source:
Selection.Paragraphs(1).TabStops.Add Position:=InchesToPoints(1), _
Leader:=wdTabLeaderDots, Alignment:=wdAlignTabLeft
I've no idea however how you would do that in C#. Probably better to ask in
a newsgroup devoted to that language than here.

Signature
Please respond to the Newsgroup for the benefit of others who may be
interested. Questions sent directly to me will only be answered on a paid
consulting basis.
Hope this helps,
Doug Robbins - Word MVP
> Thank you again. I really appreciate your help.
> I searched on the internet on how to create a tabstop programmatically and
[quoted text clipped - 40 lines]
>> >> >
>> >> > Thank you in advance,
Thank you, Doug. I've played with your suggestion extensively and still
unable to
fill the rest of a table cell with dots :-(. Please let me know if you come
across some examples.
Many Thanks in Advance,
> I would recommend the Visual Basic Help file that comes with Word. Here is
> the example from that source:
[quoted text clipped - 49 lines]
> >> >> >
> >> >> > Thank you in advance,
Doug Robbins - 15 Feb 2005 02:04 GMT
Using VBA, the example from the VBA help file works. As mentioned before
however, I have no idea at all how to do it with C#

Signature
Please respond to the Newsgroup for the benefit of others who may be
interested. Questions sent directly to me will only be answered on a paid
consulting basis.
Hope this helps,
Doug Robbins - Word MVP
> Thank you, Doug. I've played with your suggestion extensively and still
> unable to
[quoted text clipped - 66 lines]
>> >> >> >
>> >> >> > Thank you in advance,
Helmut Weber - 15 Feb 2005 12:30 GMT
Hi Mike,
I think you might want to add dots to some text before the cells
end until this causes a new line, and then remove the last character.
Like this, but only a workaraound and pretty slow.
And make sure, you are in print view, and to switch back
to normal view and again to printview. Otherwise,
Information(wdFirstCharacterLineNumber) might not work.
Sub test00001()
Dim l1 As Long ' first Line
Dim l2 As Long ' second line after inserting a dot
Dim oTbl As Table
Dim oCll As Cell
For Each oTbl In ActiveDocument.Range.Tables
oTbl.AllowAutoFit = False '!!!
For Each oCll In oTbl.Range.Cells
oCll.Select
Selection.End = Selection.End - 1
Selection.Collapse direction:=wdCollapseEnd
l1 = Selection.Information(wdFirstCharacterLineNumber)
Selection.TypeText Text:="."
l2 = Selection.Information(wdFirstCharacterLineNumber)
If l2 <> l1 Then
Selection.TypeBackspace
Else
While l1 = l2
l1 = Selection.Information(wdFirstCharacterLineNumber)
Selection.TypeText Text:="."
l2 = Selection.Information(wdFirstCharacterLineNumber)
Wend
End If
Selection.TypeBackspace
Next
Next
End Sub
Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/
Mike - 18 Feb 2005 00:25 GMT
Thank you very much, it's exactly what I am looking for.
> Hi Mike,
> I think you might want to add dots to some text before the cells
[quoted text clipped - 41 lines]
> Word XP, Win 98
> http://word.mvps.org/