If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > visual basic to excel on windows 98

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-08-04, 11:43
gkal gkal is offline
Registered User
 
Join Date: Jan 2004
Posts: 3
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.
Reply With Quote
  #2 (permalink)  
Old 01-10-04, 08:18
Xl-Dennis Xl-Dennis is offline
Registered User
 
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
Reply With Quote
  #3 (permalink)  
Old 01-10-04, 11:06
rnealejr rnealejr is offline
Registered User
 
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.
Reply With Quote
  #4 (permalink)  
Old 01-10-04, 18:20
Xl-Dennis Xl-Dennis is offline
Registered User
 
Join Date: Dec 2003
Location: Östersund Sweden
Posts: 60
Quote:
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
Reply With Quote
  #5 (permalink)  
Old 01-10-04, 20:04
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Because of the reference to Excel.Application object - that is not mdac.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On