ciao ho questo problema , che quando nel database che è excel metto nellla cella del campo immagini il nome con l'estensione tipo abs.jpg o altro per richiamare l'immagine mi restituisce questo errore
Errore di run-time di Microsoft VBScript (0x800A000D)
Tipo non corrispondente: 'objRec'
/equi/book.asp, line 93
questa è la lina 93
imgname=objRec("immagini")
se non metto niente carica in modo corretto l'immagine non disponibile , la mia domanda è non so come fare a registrare correttamente il dato nel db? e come dovrei scriverlo? oppure nella stringa che segue c'è un'errore?


if recordset("immagini")<>"" then
imgname=objRec("immagini")
imgpath=Server.MapPath("public/copertine/"& imgname &"")
Set objImageSize = New ImageSize

With objImageSize

.ImageFile = imgpath


strimgh=.ImageWidth
strimgw=.ImageHeight



End With

Set objImageSize = Nothing


strtemph="68"

moltiplica=strtemph * 100
dividi=moltiplica/strimgh
moltiplica2=strimgw * dividi
strtempw=moltiplica2/100

maxsizew="90"

if int(strtempw)>int(maxsizew) then

moltiplica1=maxsizew * 100
dividi1=moltiplica1/strtempw
moltiplica21=strtemph * dividi1
strtemph=moltiplica21/100
strtempw=maxsizew

end if

if int(strimgh)>int(strimgw) then
strthbimgw=strtempw
strthbimgh=strtemph
else
strthbimgw=strtempw
strthbimgh=strtemph
end if

else

imgname="_blank_equilibri.jpg"
strthbimgw="100"
strthbimgh="133"

end if


%>
[img]thb.aspx?filename=public/copertine/<%=imgname%>&width=<%=strthbimgw%>&height=<%=strth bimgh%>[/img]
</td>