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 > Data Access, Manipulation & Batch Languages > Delphi, C etc > reading .xls file, when added HDR & IMEX to extended properties i get error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-14-03, 02:12
AceBalasador AceBalasador is offline
Registered User
 
Join Date: Aug 2003
Posts: 4
Unhappy reading .xls file, when added HDR & IMEX to extended properties i get error

greetings! i am an average programmer with about 2 years of experience in VB6. i am to develop a DLL that parses the contents of an excel file and upload it to a remote database...

the 1st problem i had was that when i parse non-string values in the cells i get a "null value", i have solved (tempoarily) by adding letters on the string so that ADO then treats it as text, as i was browsing the INet i have stumbled upon setting ISAM to "1" so all datatypes could be read properly.

*************** START HERE ******************

' >>>>> THIS WORKS!!!

With oConn
.Provider = "Microsoft.Jet.OLEDB.4.0"
.ConnectionString = _
"Data Source=C:\manuel327.xls;Extended Properties=Excel 8.0;HDR=NO;"
.CursorLocation = adUseClient
.Open
End With

' >>>>>> ERROR!!!
With oConn
.Provider = "Microsoft.Jet.OLEDB.4.0"
.ConnectionString = _
"Data Source=C:\manuel327.xls;Extended Properties=Excel 8.0;HDR=NO;ISAM=1"
.CursorLocation = adUseClient
.Open
End With

*************** END HERE ********************


The problem is that when i append those properties i get a weird "COULD NOT FIND INSTALLABLE ISAM" error

can someone please help me?

thanks in advance...

Reply With Quote
  #2 (permalink)  
Old 08-14-03, 02:20
AceBalasador AceBalasador is offline
Registered User
 
Join Date: Aug 2003
Posts: 4
URL: http://support.microsoft.com/default...b;en-us;257819

i have seen from this URL that the only way for me to get this error is when i try to used jet 3.51 because jet 3.51 does not support these properties... but as you can see i have posted the code above and i still receive the error even if i declare to use Jet 4.0

why???

pls help...
Reply With Quote
  #3 (permalink)  
Old 08-14-03, 03:01
AceBalasador AceBalasador is offline
Registered User
 
Join Date: Aug 2003
Posts: 4
URL: http://support.microsoft.com/default...b;en-us;257819

i have seen from this URL that the only way for me to get this error is when i try to used jet 3.51 because jet 3.51 does not support these properties... but as you can see i have posted the code above and i still receive the error even if i declare to use Jet 4.0

why???

pls help...
Reply With Quote
  #4 (permalink)  
Old 08-23-03, 13:29
byte2002 byte2002 is offline
Registered User
 
Join Date: Oct 2002
Posts: 19
Please, test this code

With cnn
.Provider = "Microsoft.Jet.OLEDB.4.0"
.ConnectionString = "Data Source = " & _
Path & ";" & _
"Extended Properties=""Excel 8.0; HDR=Yes;"""
'"Extended Properties=Excel 8.0;"
.CursorLocation = adUseClient
.Open
End With
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On