Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending the results of a query to ms word
Message
 
To
09/11/1997 10:16:11
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00059158
Message ID:
00059176
Views:
22
>how can i send the results of a query to ms word ?
>
>please send code for easier unrstanding
>
>thanks
>mike peizate
Mike,

Try something like this, although the exact code may vary according to the version of Word you are using;

oWord = CreateObject("Word.Basic")
SELECT * From Whatever INTO CURSOR Temp
SCAN
oWord.Insert(Field1 + " " +Field2 + " " + ... + CHR(130+CHR(10))
ENDSCAN
Previous
Reply
Map
View

Click here to load this message in the networking platform