Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Existing Word Documents
Message
De
17/01/2005 14:44:11
 
 
À
17/01/2005 13:25:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Divers
Thread ID:
00977797
Message ID:
00977809
Vues:
23
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform