Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing a Word doc to selected names on dbf
Message
From
17/06/2015 13:15:57
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01621082
Message ID:
01621085
Views:
50
>I get the word doc I want
>
>I extract the contents to a variable
>
>I print a report using names from a dbf and the variable created above - except that Filetostr doesn;t return the contents of a word doc - what should I do?
>

If you actually want the formatted Word document, you do this via Automation: open the document in Word and poke the data you want into it and then print it.

Here's one way to do it: http://www.tomorrowssolutionsllc.com/Articles/Accessing%20Word%20Bookmarks%20through%20Automation.PDF

The last major section of this paper shows another: http://www.tomorrowssolutionsllc.com/Conference%20Sessions/Automating%20Microsoft%20Word.pdf

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform