Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print Word Docs (Tamar? Della?)
Message
From
13/03/2002 08:20:59
 
 
To
13/03/2002 07:32:39
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00631971
Message ID:
00632007
Views:
18
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.  && Dont' ask , but it does anyway!!!
>>		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
Previous
Reply
Map
View

Click here to load this message in the networking platform