Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.doc to .txt
Message
From
12/03/2010 17:22:34
 
 
To
12/03/2010 02:47:53
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01453860
Message ID:
01454254
Views:
30
I appreciate that Tom. I would likely not have figured that out and would have been back in touch.

k

>Hi Karen,
>
>I'm glad that it might help you in your work.
>
>However, if you want to work with _cliptext this sample might be better:
>
>
>* // Test function
>CopyDoc2Clip(GETFILE())
>
>* // Copy Text into Clipboard
>FUNCTION CopyDoc2Clip as Boolean
>LPARAMETERS pcFile as String
>
>	LOCAL loWord as Object, llReturn as Boolean
>	llReturn = .F.
>	IF FILE(pcFile)
>		TRY 
>			loWord	= CREATEOBJECT([Word.Application])
>			loWord.documents.open(pcFile)
>			loWord.ActiveDocument.Content.Copy
>			loWord.quit
>			loWord	= .null. 
>			RELEASE loWord
>			llReturn = .T.
>		CATCH 
>			* Display message if anything went wrong
>		ENDTRY 
>	ENDIF 
>	RETURN llReturn
>	
>ENDFUNC 
>
Previous
Reply
Map
View

Click here to load this message in the networking platform