Results 1 to 4 of 4

Thread: !! HELP !! - I need to save embeded ole objects in their native formats...

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2002
    Posts
    3

    Question !! HELP !! - I need to save embeded ole objects in their native formats...

    I am automating powerpoint from VB, to loop through all the shapes on each page of the presentation. when I come accross embedded OLE objects in the Powerpoint presentation, I need to save them out to the file system as the original native file it was embedded as. In other words, if someone embeds a quicktime movie in a presentation, I need to save it out as a quicktime movie. the same for other types of embedded objects (MPEGS, MP3, etc)

    Linked items are no problem, since the link filepath property is available. but embedded objects seem to have OLE object data surrounding the original binary data.

    I tried a couple of things, but don't know which direction to take:

    1. I programatically chose the "doverb" option to edit the OLE embedded object, which brought up the Object Packager program, and from there you can do a "SaveAS", but I can't seem to programmatically do the SaveAs.

    2. I plopped the object into a OLE container contol on my VB form, and then tried to SaveToFile method, but it saves it with extra data. even if I specify the correct file extension in the filename, the original program cannot open it.

    3.The last option I have been exploring is to get the hWND for the object, and then try to use the win32 API to save it out, but I am still trying to figure out if this is possible (theoretically it seems possible, since all objects supposedly have an hWND, and windows should be able to save ANY data to file) but figuring out to do it has led me into the vast world of Dan Appleman's refference book of the win32 API, and I am getting lost, quick.


    ANY HELP is GREATLY appreciated....

    Thanks in advance,
    -Brian "B-Dogg" Espinola

  2. #2
    jim mcnamara
    Guest
    Did you try using Property bags?

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2002
    Posts
    3
    yes. I get an error:

    "Class does not support automation or does not support expected interface"

  4. #4

    Thread Starter
    New Member
    Join Date
    Apr 2002
    Posts
    3
    yes. I get an error:

    "Class does not support automation or does not support expected interface"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width