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. COM
  4. EXCEL and MFC

EXCEL and MFC

Scheduled Pinned Locked Moved COM
c++comtestingtools
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.
  • D Offline
    D Offline
    Daniela123
    wrote on last edited by
    #1

    I want to export data from a MFC program to EXCEL 97. The function prototypes are in excel8.h This is all part of excel8.olb. The only documentation I can find is for VB (vbaxl8.hlp on the MS Office distribution CD) WHERE CAN I FIND THE DOCUMENTATION FOR THE FUNCTIONS OF excel8.h (for C/C++ not VB) Anybody who knows COM, and OLE Automation should know... I am just a rookie when it comes to this part of programming Ethernal gratitude is guaranteed... Daniela

    D 1 Reply Last reply
    0
    • D Daniela123

      I want to export data from a MFC program to EXCEL 97. The function prototypes are in excel8.h This is all part of excel8.olb. The only documentation I can find is for VB (vbaxl8.hlp on the MS Office distribution CD) WHERE CAN I FIND THE DOCUMENTATION FOR THE FUNCTIONS OF excel8.h (for C/C++ not VB) Anybody who knows COM, and OLE Automation should know... I am just a rookie when it comes to this part of programming Ethernal gratitude is guaranteed... Daniela

      D Offline
      D Offline
      Daniela123
      wrote on last edited by
      #2

      I have to reply to my own post... There is NO documentation for EXCEL Automation for C++. It is extremely difficult using the VB documentation to get the C++ code right. For example range.PasteSpecial(Paste, Operation, SkipBlanks, Transpose) In VB, all 4 parameters are VARIANTS in the C prototype file excel8.h, the first two parameters are of type long. The "#define" for parameter Paste can nowhere be found I found a pathetic way to work around my problems. Just record a bunch of macros in EXCEL and call them from the C program myapp.Run( COleVariant("MyMacro"),...) //there are 30!!! optional parameters instead of the periods Daniela

      M 1 Reply Last reply
      0
      • D Daniela123

        I have to reply to my own post... There is NO documentation for EXCEL Automation for C++. It is extremely difficult using the VB documentation to get the C++ code right. For example range.PasteSpecial(Paste, Operation, SkipBlanks, Transpose) In VB, all 4 parameters are VARIANTS in the C prototype file excel8.h, the first two parameters are of type long. The "#define" for parameter Paste can nowhere be found I found a pathetic way to work around my problems. Just record a bunch of macros in EXCEL and call them from the C program myapp.Run( COleVariant("MyMacro"),...) //there are 30!!! optional parameters instead of the periods Daniela

        M Offline
        M Offline
        Mardigin
        wrote on last edited by
        #3

        I am having the same problem. Augh. If you find any good documentation please let me know. Mardigin

        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