S
stelios
Hi,
I use the following Code to export data from a recordset to an Excel
workbook.
In my PC everything is fine, I have no errors, BUT when I run it in another
PC I get the Following error:
"Error 430: Class does not support Automation or does not support expected
interface".
function x(){
........
Set objXL = New Excel.Application
Set objWkb = objXL.Workbooks.Open(WKB_PATH & XLT_NAME)
objWkb.SaveAs (WKB_PATH & WKB_NAME)
objXL.Visible = True
.........
Set objSht = objWkb.Worksheets(SHT_NAME)
.........
objSht.Range(objSht.Cells(4, 1), objSht.Cells(4,
FieldsCount)).CopyFromRecordset STAT_RS '<-Error 430
.........
}
Any Idea what is going wrong? (I have in both PC office 2003 and Windows XP,
and reference in Microsoft Excel 11.0)
Thanks!
I use the following Code to export data from a recordset to an Excel
workbook.
In my PC everything is fine, I have no errors, BUT when I run it in another
PC I get the Following error:
"Error 430: Class does not support Automation or does not support expected
interface".
function x(){
........
Set objXL = New Excel.Application
Set objWkb = objXL.Workbooks.Open(WKB_PATH & XLT_NAME)
objWkb.SaveAs (WKB_PATH & WKB_NAME)
objXL.Visible = True
.........
Set objSht = objWkb.Worksheets(SHT_NAME)
.........
objSht.Range(objSht.Cells(4, 1), objSht.Cells(4,
FieldsCount)).CopyFromRecordset STAT_RS '<-Error 430
.........
}
Any Idea what is going wrong? (I have in both PC office 2003 and Windows XP,
and reference in Microsoft Excel 11.0)
Thanks!