Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create Letter routine with variables
Message
From
20/05/2005 10:01:25
 
 
To
20/05/2005 08:08:14
Stephen Hunt
Admit Computer Services Inc.
Farmingdale, New York, United States
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
01016151
Message ID:
01016182
Views:
8
Hi Stephen

you should try automation with bookmarks or formfields
oWord=createobject("Word.Application")
if isnull(oWord)
  return
endif  
owdok=oword.documents.add(gLocalWorkSpace + "REKLA.DOT")
owdok.formfields("NAME").range.text=KOPF.Liefer1
oword.visible=.T.
owdok.saveas((mTempFolder) + "\" + alltrim(Thisform.Text1.value))
In This example you need a word template called "Rekla.Dot" and a formfield
called "Name" that is filled from a foxpro table

Hope that helps

Jörg
Previous
Reply
Map
View

Click here to load this message in the networking platform