Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2004
    Posts
    3

    Unanswered: visual basic to excel on windows 98

    i have developed one application in visual basic to save datagrid data to excel 2000.
    when i run an application on windows 98 to save my data to excel -2000 , i am getting "Automation Error". (Excel.application is not getting initialiezed, reason is not known)
    But when i run it on Windows XP machine with excel 2000, its working okay.
    Pls help me to solve this problem out.

  2. #2
    Join Date
    Dec 2003
    Location
    Östersund Sweden
    Posts
    60
    Hi,

    Are You using Microsoft ActiveX Data Object Library (ADO)?

    If so You need to explicit install MDAC on the Windows 98- machine since it is not shipped (ie not included with Windows 98).

    Here is a link to a download-page at MS site:
    http://www.microsoft.com/downloads/r...DisplayLang=en

    Kind regards,
    Dennis
    Kind regards,
    Dennis

  3. #3
    Join Date
    Feb 2002
    Posts
    2,232
    The excel object you are referencing in your vb code does not exist on that client. You will have to install excel on their machine for your code to function properly. However, you can dump the data as a csv file if this is an issue.

  4. #4
    Join Date
    Dec 2003
    Location
    Östersund Sweden
    Posts
    60
    You will have to install excel on their machine for your code to function properly.
    Eh? Perhaps my english is not so good but how can You conclude that from OP's post?????

    More likely is that MDAC is missing.

    Dennis
    Kind regards,
    Dennis

  5. #5
    Join Date
    Feb 2002
    Posts
    2,232
    Because of the reference to Excel.Application object - that is not mdac.

Posting Permissions

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