Results 1 to 3 of 3
  1. #1
    sneuberg is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Sep 2014
    Posts
    23

    Move OLE Object from Access table to a Word Document

    We need to replicate an Access report we have in Microsoft Word. The report has a fixed, small image in the header and so we embedded it in the report (it is not in and external file). To put this image in the Word document the only way we’ve come up with is shown in the code below.

    Dim apWord As Word.Application
    Dim doc As Word.Document
    Set apWord = CreateObject("Word.application")
    doc.Shapes.AddPicture "G:\Images\Sinful Banner.bmp", False, True, 0, 0, 540, 42



    Which requires an external image file. We really would like to avoid this. We could make a template Word document, but that too would be an external file. We know how to put this image in a table as an OLE object, but can’t find any way to get it from the table into the Word document. Can anyone tell us if this is possible and better yet how to do it?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    AFAIK, you found the only method available. Even if image is saved in table, it must be saved out as external file. Code can accomplish that and then delete the external file after embedded in the Word document.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 01-24-2014, 01:21 PM
  2. Replies: 3
    Last Post: 06-11-2013, 07:21 AM
  3. Closing Word Document From Access
    By bburton in forum Programming
    Replies: 2
    Last Post: 04-25-2011, 10:23 AM
  4. Open a word document from access
    By natalia in forum Programming
    Replies: 1
    Last Post: 10-13-2010, 08:04 AM
  5. Replies: 0
    Last Post: 06-14-2010, 07:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums