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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to create OLE object for MS Office

How to create OLE object for MS Office

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialc++comhardwaredata-structures
6 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.
  • L Offline
    L Offline
    LionAM
    wrote on last edited by
    #1

    Hello, is there any c++ tutorial or (simple) open source sample how to write an OLE object that can be embedded into MS Office applications such as powerpoint? Just like, for example, an Origin Graph or a corel draw image which are directly embedded into a powerpoint presentation. When I search for OLE, I most often only find how to automate Office... Alex

    CPalliniC 1 Reply Last reply
    0
    • L LionAM

      Hello, is there any c++ tutorial or (simple) open source sample how to write an OLE object that can be embedded into MS Office applications such as powerpoint? Just like, for example, an Origin Graph or a corel draw image which are directly embedded into a powerpoint presentation. When I search for OLE, I most often only find how to automate Office... Alex

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #2

      If you are using Visual Studio, then the simplest path is the MFC ActiveX Control Wizard[^].

      Veni, vidi, vici.

      In testa che avete, signor di Ceprano?

      L 2 Replies Last reply
      0
      • CPalliniC CPallini

        If you are using Visual Studio, then the simplest path is the MFC ActiveX Control Wizard[^].

        Veni, vidi, vici.

        L Offline
        L Offline
        LionAM
        wrote on last edited by
        #3

        Thank you - this was easier than I expected. Alex

        1 Reply Last reply
        0
        • CPalliniC CPallini

          If you are using Visual Studio, then the simplest path is the MFC ActiveX Control Wizard[^].

          Veni, vidi, vici.

          L Offline
          L Offline
          LionAM
          wrote on last edited by
          #4

          I can insert my ActiveX object into Powerpoint and save/restore the data. Now, I would like to automatically create a new object from a certain file type - ideally by drag and drop into Powerpoint. How can I achieve this? Thank you in advance. Alex

          CPalliniC L 2 Replies Last reply
          0
          • L LionAM

            I can insert my ActiveX object into Powerpoint and save/restore the data. Now, I would like to automatically create a new object from a certain file type - ideally by drag and drop into Powerpoint. How can I achieve this? Thank you in advance. Alex

            CPalliniC Offline
            CPalliniC Offline
            CPallini
            wrote on last edited by
            #5

            I never did that, however, I suppose you have to write a Shell Extension for that, check out the great article series[^] of Michael Dunn, here at CodeProject.

            Veni, vidi, vici.

            In testa che avete, signor di Ceprano?

            1 Reply Last reply
            0
            • L LionAM

              I can insert my ActiveX object into Powerpoint and save/restore the data. Now, I would like to automatically create a new object from a certain file type - ideally by drag and drop into Powerpoint. How can I achieve this? Thank you in advance. Alex

              L Offline
              L Offline
              LionAM
              wrote on last edited by
              #6

              I have found an example which works as expected: http://msdn.microsoft.com/en-us/library/8c47csfz%28v=vs.90%29.aspx[^] Alex

              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