Results 1 to 4 of 4

Thread: Automation Error

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Posts
    82

    Automation Error

    Can anyone help me with this error?

    Class does not support Automation or does not support expected interface.

    What does this mean?
    What causes it?
    What does can I do to remedy this?

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    What's the lines of code you're getting this on?

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Posts
    82
    That's my problem ... when I run it while I am testing it (meaning I run it in VB editor), I don't get any errors. But when I deploy it, that's the only time that the error occurs. So I don't t know what triggers the error. In my understanding interface is the header of a function for a class (or something like that) but I have no idea what class in my program or in what event this error occurs!

    Any help would be most appreciated. Thank you.

  4. #4
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Have you got any references set from the project menu or activex controls in your app which you use?

    To explain what's going on, lets say you use the Excel object library to write to & save a *.xls file from your code. You compile the app into an exe, then send it (on it's own without using a setup program) to another pc which doesn't have Excel installed.

    As soon as you call the line set variablename = new Excel.Application, the code'll look for Excel in the registry, not find it & therefore won't be able to set the reference or start an instance of Excel up (which results in this error).

    1) Are you using the P&D wizard o distribute your app.
    2) If you use any ocx's or object library references in your code, try & run the regsvr32 program on the problem pc to register these classes.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

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