Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print Word Docs (Tamar? Della?)
Message
From
13/03/2002 07:06:45
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Print Word Docs (Tamar? Della?)
Miscellaneous
Thread ID:
00631971
Message ID:
00631971
Views:
67
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
Next
Reply
Map
View

Click here to load this message in the networking platform