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!

Drawing a line in Word Automation 1

Status
Not open for further replies.

FoxEgg

Programmer
Mar 24, 2002
749
AU
OK guys...

First that which most of you know...

#1 there are a good number of recommendations for automating Word from VFP.... these can be found in the KeyWord Search and the FAQs

#2... I have looked and tried many of these... but the best (I believe) is the one which assumes that the reader is a cretin and the writer walks him (in my case) or her thru the issue...

I know that many of you have made suggestions before for others to look at this adddress.... but as I am probably the the ultimate VFP-cretin programmer.

I have to tell all of the normal humans out there... this site is fantastic.


I hope this links connects for those of you who want (are trying) to learn VFP to Word programming....

I can tell you that it assumes that you are a normal human being and it walks you through....the whole thing...

I am now a demi-God of VFP Word programming... but I need the help of the big-Gods...

Dear programming Gods..

Programmatically, how do I draw a line on this page....

I tried

.ActiveDocument.Shapes.AddLine(90#, 171#, 558#, 171#).Select

but it reports an error


John Fox
Fox Egg
World's worst VFP Programmer
Sydney Oz
 
This could be a first.... Your suggestion...

ow=CREATEOBJECT("word.application")
ow.Documents.Add


Select the two lines (so they are blue) and right-mouse on the selection and use the "execute selection" and the next line type :
ow.Documents. at this point intellisense shoudl kick in.



Did not work for me !!! (Shock Horror) I even tried twice...

John
 
This could be a first.... Your suggestion...

ow=CREATEOBJECT("word.application")
ow.Documents.Add


Select the two lines (so they are blue) and right-mouse on the selection and use the "execute selection" and the next line type :
ow.Documents. at this point intellisense shoudl kick in.


Did not work for me !!! (Shock Horror) I even tried twice...



Hummm....I could have sworn....I may have had another instance running. Sorry.
Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top