Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9169551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:53:41+00:00 2026-06-17T15:53:41+00:00

I managed to use the com1.2.3 library but i can only use excel if

  • 0

I managed to use the com1.2.3 library but i can only use excel if it is already openned.

I don’t know why this code doesn’t work;

main = coRun $ do
     idEx <- createObject "Excel.Application"

i got this error in cmd:

*** Exception: ComException {comException = ComError (-2147467262),
comExceptionMsg = "(0x80004002) This interface is not supported\r\n"}. 

I read that in win7 there is maybe an impossibility to launch 64b applications from com32. Is that correct?

Anyone has a working code that will launch excel from win7?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T15:53:42+00:00Added an answer on June 17, 2026 at 3:53 pm

    ok i found it. i post here since someone may be interested in the solution and may have inspiration. I read somewhere that instead of createObject , coCreateInstance should be used.
    so the following code should fire excel

    import System.Win32.Com 
    import System.Win32.Com.Automation
    
    iidIDispatch_unsafe  = mkIID "{00020400-0000-0000-C000-000000000046}"
    
    newExcel = coRun $ do 
       clsidExcel <- clsidFromProgID "Excel.Application"
       pIunknown <- coCreateInstance clsidExcel  Nothing LocalProcess iidIDispatch_unsafe
       let pExl = castIface pIunknown :: IDispatch ()
       propertySet "Visible" [inBool True]  pExl
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

You can use Xcode to generate a managed class of an entity. This class
I managed to use a sample code from the internet but all it does
I'm trying to learn how to use managed/unmanaged code interop, but I've hit a
I am a beginner with Ruby and Rails but I managed to use OmniAuth
@Repository @Service @Controller @Component -->only use for spring managed bean (no need weaving) -->@repository,
Has anyone managed to use core-plot from wax? I have been trying recently, but
So I managed to use SOAP no problem but I am having difficulty using
I managed to use jEditable selects, inputs and textareas quite easily, but I have
I wonder if someone managed to use Pure data sound library as an external
http://tinkerbin.com/ojXJuQfl i managed to use instructions from another user and centered text vertically, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.