Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I set Tab alignment in Word via FoxPro?

Status
Not open for further replies.

ctbaker

Programmer
May 8, 2003
26
US
Hi,

I am trying to use something along the lines of
Code:
oWord.Selection.ParagraphFormat.TabStops.Add(0.75 * 72)
oWord.Selection.ParagraphFormat.TabStops.Add.Alignment = 2
to create a tabstop in word and then change it to a Right Tab from the default tab alignment. I am not having any luck. I know this is trivial but I am not having success. Any help is appreciated.

Thanks
 
I figured it out, should have been:

Code:
oWord.Selection.ParagraphFormat.TabStops.Add(0.75 * 72, 2)

Oh well... too bad I can't delete my own threads.
 
ctbaker,

No reason to delete the thread even if you could. Some member will no doubt find this information useful in the future. Glad you were able to figure it out, and thanks for posting the solution.

boyd.gif

craig1442@mchsi.com
"Whom computers would destroy, they must first drive mad." - Anon​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top