>Kevin,
>Do not just check how long a code is but read it. wdSendToDocument is a constant with a value of 0 (see first reply #define)
>Hope someone else can help more. I thought first reply already had all the code you need.
>Cetin
>Çetin Basöz
>MS Foxpro MVP, MCP
>Welcome to FoxyClasses
>Türkçe bir Foxpro sitesi Fox4um
>
>Cetin,
>__________________________________________________________________________
> Actually, I did read the code and what I read was code for opening datasource, printing, etc. I simply missed the #def when looking at it again after receiving the more narrow code, one of those human things I guess. Thanks a lot for the information you have already provided me. I have made it do most of what I need it to do, but since this is my first time working with word from VFP, I just may need a little more information. Do you know where I can find a link showing all the syntax for working with word from VFP? Thanks again and sorry for taking your time...
Check Hentzewerke site for Tamar Granor and Della Martin's Office Automation book. I didn't see the book but all references say it's perfect and knowing the authors I bet it is :)
There is no one tidy place that shows the syntax AFAIK. You might look into Vbawrdx.chm located in office directory (if you chose VBA help during installation). Name might not be exactly the same depending on the version (vba_wrdx and .hlp as extension, x stands for version).
Recording a macro in word and translating it a bit is a great helper.
Cetin