You can find the various Excell conversion file type constants at :
http://www.convert-files.c
Following may be of use :
xlExcel9795 (Numeric value 43) :
Microsoft Excel 97-2000 & 5.0/95 Workbook (*.XLS)
xlWorkbookNormal (Numeric value -4143) : Microsoft Excel Workbook (*.XLS)
Do not use 39 ....
Regards,
VIkas
Main Topics
Browse All Topics





by: Vikas_DixitPosted on 2004-02-10 at 09:42:31ID: 10324171
Gajendar, do you have excell200 on the same machine ??
ame) = 0 then lerts = FALSE s(1).Paren t.Windows( excel.appl ication.wo rkbooks(1) .Name).Vis ible = True s(1).savea s(docname, 39) s(1).close ()
I stum,bled upon this code, to save dw as excell format, via HTML :
Converting DataWindow to Excel file
// ... Init docname
// ... GetFileOpenName or any other method
if dw_1.SaveAs(docname, HTMLTable!, True) = -1 then
//Vikas - Here you can save as excell5 etc instead of HTML
MessageBox("Warning", "Unable to export data. Error writing to file!", Exclamation!)
return
end if
// Convert HTML file to Excel native format
OLEObject excel
excel = CREATE OLEObject
if excel.ConnectToObject(docn
excel.application.DisplayA
excel.application.workbook
excel.application.workbook
//Vikas -This should save in 200 fromat if you have excell 2000 ...
excel.application.workbook
end if
DESTROY excel
// done
but why such requirement ??
Regards,
Vikas