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#
  4. How can I . . .

How can I . . .

Scheduled Pinned Locked Moved C#
questioncomdata-structures
7 Posts 3 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.
  • V Offline
    V Offline
    Venet
    wrote on last edited by
    #1

    . . . embedd an, say excel sheet in my application? I was looking at OLE, but as far as I can understand that has to do more with manipulating an open application rather than using components of the app. What I'm really trying to do, is to create an Excel graph from data that my app collects. Quite new to this! Regards, Venet. Donec eris felix, multos numerabis amicos.

    S I 2 Replies Last reply
    0
    • V Venet

      . . . embedd an, say excel sheet in my application? I was looking at OLE, but as far as I can understand that has to do more with manipulating an open application rather than using components of the app. What I'm really trying to do, is to create an Excel graph from data that my app collects. Quite new to this! Regards, Venet. Donec eris felix, multos numerabis amicos.

      S Offline
      S Offline
      Stephane Rodriguez
      wrote on last edited by
      #2

      Search this forum with "Excel" in the search box right above.


      How low can you go ?
      (MS rant)

      V 1 Reply Last reply
      0
      • S Stephane Rodriguez

        Search this forum with "Excel" in the search box right above.


        How low can you go ?
        (MS rant)

        V Offline
        V Offline
        Venet
        wrote on last edited by
        #3

        Thanks, I did do a search before posting, however all the examples that I've come accross describe Excel automation, i.e. opening excel and populating the fields in it. My question was, if I can embedd an excel workbook in my application, rather than having that workbook opened in the Excel app itslef. (Something like IE does when viewing .PDF files) Regards, Venet. Donec eris felix, multos numerabis amicos.

        S 1 Reply Last reply
        0
        • V Venet

          Thanks, I did do a search before posting, however all the examples that I've come accross describe Excel automation, i.e. opening excel and populating the fields in it. My question was, if I can embedd an excel workbook in my application, rather than having that workbook opened in the Excel app itslef. (Something like IE does when viewing .PDF files) Regards, Venet. Donec eris felix, multos numerabis amicos.

          S Offline
          S Offline
          Stephane Rodriguez
          wrote on last edited by
          #4

          You've got OLE components with progids such like Excel.Sheet and Excel.Chart (you probably already know the Excel.Application progid, which in turn launches Excel). These are OLE components, not ActiveX controls. That's why they don't appear in the IDE (customize toolbox for instance). But they are here and ready. For instance, They appear when you are in Word, Insert \ Object, then select either Microsoft Excel Sheet, or Microsoft Excel Chart. That's exactly the entry point for that. More info here[^].


          How low can you go ?
          (MS rant)

          V 1 Reply Last reply
          0
          • S Stephane Rodriguez

            You've got OLE components with progids such like Excel.Sheet and Excel.Chart (you probably already know the Excel.Application progid, which in turn launches Excel). These are OLE components, not ActiveX controls. That's why they don't appear in the IDE (customize toolbox for instance). But they are here and ready. For instance, They appear when you are in Word, Insert \ Object, then select either Microsoft Excel Sheet, or Microsoft Excel Chart. That's exactly the entry point for that. More info here[^].


            How low can you go ?
            (MS rant)

            V Offline
            V Offline
            Venet
            wrote on last edited by
            #5

            Example looks as exactly what I need. I'm going to try it out later. Thanks for the reply. Regards, Venet. Donec eris felix, multos numerabis amicos.

            1 Reply Last reply
            0
            • V Venet

              . . . embedd an, say excel sheet in my application? I was looking at OLE, but as far as I can understand that has to do more with manipulating an open application rather than using components of the app. What I'm really trying to do, is to create an Excel graph from data that my app collects. Quite new to this! Regards, Venet. Donec eris felix, multos numerabis amicos.

              I Offline
              I Offline
              ian mariano
              wrote on last edited by
              #6

              You know how IE does it? IE is an "ActiveX Document Host". The simplest way is to reuse the WebBrowser control in your form to host excel documents... HOWTO: Use the WebBrowser Control to Open Office Documents with Visual C# .NET[^]


              http://www.ian-space.com/

              V 1 Reply Last reply
              0
              • I ian mariano

                You know how IE does it? IE is an "ActiveX Document Host". The simplest way is to reuse the WebBrowser control in your form to host excel documents... HOWTO: Use the WebBrowser Control to Open Office Documents with Visual C# .NET[^]


                http://www.ian-space.com/

                V Offline
                V Offline
                Venet
                wrote on last edited by
                #7

                Thank you for the info. No wonder why it wasn't working! I think that should increase my project mark for about 10% :) Regards, Venet. Donec eris felix, multos numerabis amicos.

                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