>Pete,
>Have you opened Word, started a macro and then run through the entire mailmerge process including printing? The macro then gives you a blueprint for all the OLE automation commands you'll need.
>
>The macros show the commands in 'VB' style, with parameters in the "ParamName:ParamData" style, but there are files available here on UT that will tell you the order of these parameters for VFP use.
>
>HTH
>Barbara
>
>>Hello All,
>>I know there have been numerous threads here on Universal Thread concerning Word/Foxpro mailmerges, but I can't seem to find an answer to my problem ( I've tried various drugs ), I need to create a data source for a predefined Word mailmerge document, and initiate the mailmerge process from within Visual FoxPro allowing user intervention from within Word, from what I've gleaned from the previous threads the process would be:
>>
>>1) Run a Visual FoxPro Query thus creating a table.
>>2) Start Word using Automation. ( ok so far ).
>>3) Open mailmerge document ( how? )
>>4) Print letters ( how? )
>>5) If letter printed ok set flag on table ( ok on this ).
>>
>>any help gratefuly received
>>
>>Regards
>>
>>Pete Kane
Barbara et` al
thank you all for your help
Regards
Pete Kane
Regards,
Peter J. Kane
Pete