Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.visual.basic    |    MS Visual Basic discussions, NOT dot-net    |    10,840 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 8,891 of 10,840    |
|    Will to All    |
|    VB6 OLE question    |
|    20 Oct 04 04:10:13    |
   
   From: don__duck@hotmail.com   
      
   I'm creating a small app which has an OLE container of class   
   "Word.Document.8". Through code, I'd like to access the embedded   
   document, insert a picture, and modify the picture's size property.   
      
   If I were to do it using Word's VBA, the code for inserting the picture   
   would look something like this:   
      
   Selection.InlineShapes.AddPicture Filename:="...path to the picture..."   
      
   I've tried OLE1.object.Selection.InlineShapes.AddPicture, I've also   
   tried to create an instance of Word:   
      
   Set WApp = CreateObject("Word.Application")   
      
   but can't seem to associate my object variable to the imbedded Word   
   Document.   
      
   Where am I going wrong?   
      
   Thanks,   
   William   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca