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. Using Excel From C++

Using Excel From C++

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++com
5 Posts 4 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.
  • T Offline
    T Offline
    Tony Fontenot
    wrote on last edited by
    #1

    Ok here is what I want to do: 1) load data into excel from C++ App 2) format cells and merge cells from C++ App 3) Print using excel directly from my C++ App I have found some articles that deal with C++ and Excel, but nothing that really deals with printing. Is it possible? If it isn't is there a way to call a macro and have the macro print the sheet? Now the kicker. My app will be distributed to many users that have different versions of excel. What is the best way to handle this? Is it as simple as making sure to not use functions that aren't present in earlier versions, or is it much more complicated than that. Any suggestions or advice? Thanks in advance. :-D *********************** Tony Fontenot Recreational Solutions tony@recsolutions.com ***********************

    A 1 Reply Last reply
    0
    • T Tony Fontenot

      Ok here is what I want to do: 1) load data into excel from C++ App 2) format cells and merge cells from C++ App 3) Print using excel directly from my C++ App I have found some articles that deal with C++ and Excel, but nothing that really deals with printing. Is it possible? If it isn't is there a way to call a macro and have the macro print the sheet? Now the kicker. My app will be distributed to many users that have different versions of excel. What is the best way to handle this? Is it as simple as making sure to not use functions that aren't present in earlier versions, or is it much more complicated than that. Any suggestions or advice? Thanks in advance. :-D *********************** Tony Fontenot Recreational Solutions tony@recsolutions.com ***********************

      A Offline
      A Offline
      Aizik Yair
      wrote on last edited by
      #2

      Tony, You Have luck. I just sent to code project an article that explain all you want to know. I dont know when it will be shown . check your email - i sent the article directly to you. By. ;) Aizik Yair Software Engineer

      S 1 Reply Last reply
      0
      • A Aizik Yair

        Tony, You Have luck. I just sent to code project an article that explain all you want to know. I dont know when it will be shown . check your email - i sent the article directly to you. By. ;) Aizik Yair Software Engineer

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

        Is this really possible to call printing of Excel Application?:confused:

        A K 2 Replies Last reply
        0
        • S syedhassan4

          Is this really possible to call printing of Excel Application?:confused:

          A Offline
          A Offline
          Aizik Yair
          wrote on last edited by
          #4

          Yes it is. and not just print but all the things you know with excel.. I suppose my article will be publish soon. :) Aizik Yair Software Engineer

          1 Reply Last reply
          0
          • S syedhassan4

            Is this really possible to call printing of Excel Application?:confused:

            K Offline
            K Offline
            KarstenK
            wrote on last edited by
            #5

            AFAIK you can control Excel with automation. In the MSDN the automation of excel is written in VB but it also works in a similar way in VC. If you want to do it in VC you have to "#import" an dll with this interface. It creates the com-Interface with the names of the methods. And than code trough the dschungle. :~

            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