- Joined
- Jun 23, 2007
- Messages
- 61
- Reaction score
- 0
Hello everyone,
 
I have a general question about Wordpad OLE objects. I have the following code snippet:
	
		
It opens up the OLE document and saves it to a directory.  This will not work with a wordpad document however.  I get the error "automation object does not comply with the file", or something to that effect.  Makes perfect sense.  But, how do I open up WORDPAD instead of the WordBasic object so I can use that program instead to save the file?  I tried this:
	
	
	
		
but it did not work so well.
 
Thank you for any help!
				
			I have a general question about Wordpad OLE objects. I have the following code snippet:
		Code:
	
			 Forms![FormLetters]!MyOle.Verb = -2
 		Forms![FormLetters]!MyOle.Action = 7
 		 Set Word_Obj = Forms![FormLetters]!MyOle.Object.Application.WordBasic
 
 Word_Obj.FileSaveAs ("c:\Letters\mydocument.rtf")
		Code:
	
	Set Word_Obj = Forms![FormLetters]!MyOle.Object.Application.WordPadThank you for any help!
			
				Last edited: 
			
		
	
								
								
									
	
								
							
							 
	