Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Existing Word Documents
Message
From
17/01/2005 14:44:11
 
 
To
17/01/2005 13:25:22
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
00977797
Message ID:
00977809
Views:
22
>I have an existing simple word doucment. I would llike to add my data to the doucment and print the document out. How can I do this programmatically w/o having ot recreate the document ins vfp? Using the word object code?

Jeff

Create word app
poworddoc = CREATEOBJECT("Word.Application")

Open you document
poworddoc.documents.ADD(SYS(5) + SYS(2003) + '\FDIC.DOT',.F.)

manipulate it using bookmark (add date)
poworddoc.SELECTION.GOTO(-1, , ,"youBookMark")
poworddoc.SELECTION.insertdatetime( "dddd, MMMM dd, yyyy",.F.)

You can create placemark like ***address*** then do search and replace.

You can create a table then go to the bookmark in that table and append you data in the table.

Mo
Previous
Reply
Map
View

Click here to load this message in the networking platform