I'll try.
Thanks to all
Peter
>Why is Word asking if you want to save changes when you havent made any?
>Anyway.. just a suggestion for you
>put the creatobject outside of the loop
>then just open the doc, print it & close it
>this way you're not closing Word before its finished printing
>Once its all finished you can close the instance of Word
>
>This should be faster too!
>
>HTH
>Will
>
>>Let me try this again (didn't get a good answer):
>>I need to batch print Word Docs nad need to avoid Words question"Do you want to save this document?
>>
>>here is what I do but that keeps asking:
>>
>> SCAN
>> lcFormName = ALLTRIM(cc1.fname)
>> IF NOT EMPTY(lcFormName ) AND FILE(lcFormName )
>> oWord=CREATEOBJECT("Word.Application")
>> oWord.VISIBLE=.F.
>> oWord.DisplayAlerts=.F.
>> oWord.DOcuments.Open(lcFormName )
>> oWord.ActiveDocument.PrintOut(.t.)
>> oWOrd.Quit()
>> oword=""
>> ENDIF
>>
>> ENDSCAN
>>
>>
>>
>>Any Ideas? I have to do a demo to the State Treasurer tomorrow and would like to avoid this snafu.
>>
>>
>>Thanks
Peter Cortiel