Versions des environnements
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement