Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Embedded OLE objects in VB .NET ?

Embedded OLE objects in VB .NET ?

Scheduled Pinned Locked Moved Visual Basic
csharpcomgraphicshardwarehelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    smritiy
    wrote on last edited by
    #1

    I have a MS Word document and I'm iterating through every Shape/Inline shape in it (I'm using VB .NET). And I want to save each of these shapes into a separate file. If its an image/drawing/diagram then in a GIF file, if its an audio then MP3/WAV/MIDI file and so on. However I'm having problems with embedded OLE objects. I have a MP3 and a RAM file embedded in the document. But I can't seem to find any way to get a handle to these objects or the link to these files. I tried OLEFormat.object but I get an "No such interface supported" error. Smriti

    R 1 Reply Last reply
    0
    • S smritiy

      I have a MS Word document and I'm iterating through every Shape/Inline shape in it (I'm using VB .NET). And I want to save each of these shapes into a separate file. If its an image/drawing/diagram then in a GIF file, if its an audio then MP3/WAV/MIDI file and so on. However I'm having problems with embedded OLE objects. I have a MP3 and a RAM file embedded in the document. But I can't seem to find any way to get a handle to these objects or the link to these files. I tried OLEFormat.object but I get an "No such interface supported" error. Smriti

      R Offline
      R Offline
      ramaseb
      wrote on last edited by
      #2

      Hi.. have you used the new stuff from OFFICE 2003 , ( the new object model and the native .net support ) !! you can find some info at msdn.microsoft.com or http://msdn.microsoft.com/office/understanding/officesystem/codesamples/default.aspx?pull=/msdnmag/issues/03/09/microsoftoffice2003/toc.asp Hope I helped you.. Ramaseb Ramaseb.

      S 1 Reply Last reply
      0
      • R ramaseb

        Hi.. have you used the new stuff from OFFICE 2003 , ( the new object model and the native .net support ) !! you can find some info at msdn.microsoft.com or http://msdn.microsoft.com/office/understanding/officesystem/codesamples/default.aspx?pull=/msdnmag/issues/03/09/microsoftoffice2003/toc.asp Hope I helped you.. Ramaseb Ramaseb.

        S Offline
        S Offline
        smritiy
        wrote on last edited by
        #3

        Yup, I'm using the new model only. I don't know about the old model but the new document is like this: Shape/InlineShape -> OleFormat property -> Object property The OLEFormat property is supposed to be used when the shape is an OLE object. So in case of images I access the image through Shape.OLEFormat.object. But it doesn't seem to work when the object is an audio/video file. Thanks anyway, Smriti

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups