CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 11 of 11
  1. #1
    Join Date
    Jun 2001
    Location
    Wuerzburg, Germany
    Posts
    90

    Create OLE in WebExtension

    Hi,

    I want to create an Excel OLE-Object from my webextension.

    When I call m_app.CreateDispatch("Excel.Application") I get an Exception.

    It works fine from a normal dll.

    Thanks

    Michael

  2. #2
    Join Date
    Mar 2003
    Location
    India {Mumbai};
    Posts
    3,871

    Re: Create OLE in WebExtension

    Because, you do not have rights to do the same on WebExtesions.

    Regards.
    My latest article: Explicating the new C++ standard (C++0x)

    Do rate the posts you find useful.

  3. #3
    Join Date
    Jun 2001
    Location
    Wuerzburg, Germany
    Posts
    90

    Re: Create OLE in WebExtension

    Is it possible to get the rights?

  4. #4
    Join Date
    Mar 2003
    Location
    India {Mumbai};
    Posts
    3,871

    Re: Create OLE in WebExtension

    I dont hope so.. as it is not specific to you (User)....
    My latest article: Explicating the new C++ standard (C++0x)

    Do rate the posts you find useful.

  5. #5
    Join Date
    Jun 2001
    Location
    Wuerzburg, Germany
    Posts
    90

    Re: Create OLE in WebExtension

    I am Admin on this server, not User.

  6. #6
    Join Date
    Mar 2003
    Location
    India {Mumbai};
    Posts
    3,871

    Re: Create OLE in WebExtension

    But Administrator is also a type of user!
    What I meant is security polocies with executing the potentially harmful code.
    We cannot create a folder using ASP

    Futher, sorry to tell you that I do not have exposure to WebExtns. Did you mean Web Extesions for FrontPage, or something like that?
    My latest article: Explicating the new C++ standard (C++0x)

    Do rate the posts you find useful.

  7. #7
    Join Date
    Jun 2001
    Location
    Wuerzburg, Germany
    Posts
    90

    Re: Create OLE in WebExtension

    It is a ISAPI-Extension dll extends CHttpServer.

  8. #8
    Join Date
    Mar 2003
    Location
    India {Mumbai};
    Posts
    3,871

    Re: Create OLE in WebExtension

    Ohh!
    Then you can obviously create any object and play with it.
    Please do mention the exception message...

    I thought you were doing something on scripting side...
    My latest article: Explicating the new C++ standard (C++0x)

    Do rate the posts you find useful.

  9. #9
    Join Date
    Mar 2003
    Location
    India {Mumbai};
    Posts
    3,871

    Re: Create OLE in WebExtension

    You can also use #import directive to include typelibrary for excel, and name it as class. Further, declare object of that class and access its members directly.
    You need not to depend on Dispatch, Invoke and all that.
    My latest article: Explicating the new C++ standard (C++0x)

    Do rate the posts you find useful.

  10. #10
    Join Date
    Jun 2001
    Location
    Wuerzburg, Germany
    Posts
    90

    Re: Create OLE in WebExtension

    OK, thanks. I'll try.

    Michael

  11. #11
    Join Date
    Jun 2001
    Location
    Wuerzburg, Germany
    Posts
    90

    Re: Create OLE in WebExtension

    Hi,

    I still haven't fixed the problem. I tried to import msword.olb, but had errors.

    Have you a little exsample for me?

    Thanks

    Michael

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured