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...
``` Appreciate a normal day, it is always better than a bad one ```
Kev