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. AfterCalculate is missing in Excel.tli, version: Office 2003

AfterCalculate is missing in Excel.tli, version: Office 2003

Scheduled Pinned Locked Moved C / C++ / MFC
c++testingtoolsannouncement
4 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.
  • K Offline
    K Offline
    KTTransfer
    wrote on last edited by
    #1

    I am working on Excel Automation. Application is MFC application without GUI. All callbacks work perfectly in machine where office version is 2007 but same is not working in 2003. When checking Excel.tli or tlh in both the machines, the size is different and AfterCalculate call back is missing in tli and tlh. What needs to be added to application, to make it work for both versions. This is how I imported: #import "libid:00020813-0000-0000-C000-000000000046" auto_search no_dual_interfaces \ rename("DialogBox", "excelDialogBox") \ rename("RGB", "excelRGB") \ rename("DocumentProperties", "excelDocumentProperties") \ rename("SearchPath", "excelSearchPath") \ rename("CopyFile", "excelCopyFile") \ rename("ReplaceText", "excelReplaceText") Please give me clue. Regards, KTTransfer.

    M 1 Reply Last reply
    0
    • K KTTransfer

      I am working on Excel Automation. Application is MFC application without GUI. All callbacks work perfectly in machine where office version is 2007 but same is not working in 2003. When checking Excel.tli or tlh in both the machines, the size is different and AfterCalculate call back is missing in tli and tlh. What needs to be added to application, to make it work for both versions. This is how I imported: #import "libid:00020813-0000-0000-C000-000000000046" auto_search no_dual_interfaces \ rename("DialogBox", "excelDialogBox") \ rename("RGB", "excelRGB") \ rename("DocumentProperties", "excelDocumentProperties") \ rename("SearchPath", "excelSearchPath") \ rename("CopyFile", "excelCopyFile") \ rename("ReplaceText", "excelReplaceText") Please give me clue. Regards, KTTransfer.

      M Offline
      M Offline
      MsmVc
      wrote on last edited by
      #2

      try this one

      #import \
      ".\MSO.DLL" \
      rename("DocumentProperties","DocumentPropertiesXL") \
      rename("RGB", "RGBXL")
      // I changed OFFICE11 to OFFICE12, since I am using Excel 2007

      // Microsoft VBA Objects
      #import \
      ".\VBE6EXT.OLB"

      // Excel Application Objects
      #import ".\EXCEL.EXE" \
      rename("DialogBox", "DialogBoxXL") rename("RGB", "RGBXL") \
      rename("DocumentProperties", "DocumentPropertiesXL") \
      rename("ReplaceText","ReplaceTextXL") \
      rename("CopyFile","CopyFileXL") \
      exclude("IFont","IPicture") no_dual_interfaces

      K 1 Reply Last reply
      0
      • M MsmVc

        try this one

        #import \
        ".\MSO.DLL" \
        rename("DocumentProperties","DocumentPropertiesXL") \
        rename("RGB", "RGBXL")
        // I changed OFFICE11 to OFFICE12, since I am using Excel 2007

        // Microsoft VBA Objects
        #import \
        ".\VBE6EXT.OLB"

        // Excel Application Objects
        #import ".\EXCEL.EXE" \
        rename("DialogBox", "DialogBoxXL") rename("RGB", "RGBXL") \
        rename("DocumentProperties", "DocumentPropertiesXL") \
        rename("ReplaceText","ReplaceTextXL") \
        rename("CopyFile","CopyFileXL") \
        exclude("IFont","IPicture") no_dual_interfaces

        K Offline
        K Offline
        KTTransfer
        wrote on last edited by
        #3

        No its not working. AfterCalculate event is introduced in office 2007. So its not available in 2003. But is there any way to get it by including any thing in application which works for both the versions. If any idea.. . Thanks in advance. Regards, KTTransfer.

        M 1 Reply Last reply
        0
        • K KTTransfer

          No its not working. AfterCalculate event is introduced in office 2007. So its not available in 2003. But is there any way to get it by including any thing in application which works for both the versions. If any idea.. . Thanks in advance. Regards, KTTransfer.

          M Offline
          M Offline
          MsmVc
          wrote on last edited by
          #4

          ok it's working fine for me.But any way can you tell what you want to do?

          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