Hi
Can anybody help me on the subject.
Thanks
- Ramesh Babu P
#define xlDBF3 8
FUNCTION MAIN()
LOCAL oExcel := CREATEOBJECT( "Excel.Application" )
LOCAL oWorkBook, oSheet
oWorkbook = oExcel:WorkBooks:Open( "E:\XHARBOUR\MYTEST.XLS" )
oSheet = oExcel:ActiveSheet
oSheet:SaveAs( "E:\XHARBOUR\MYTEST.DBF", xlDBF3 )
oWorkBook:Close( .F. )
oExcel:Quit()
RETURN NIL
RAMESHBABU wrote:When I tried to save the Excel file as .DBF file, I am getting the data column as a character type field in the
target .DBF file.
column types are changed from numeric to character
sometimes columns are completely ignored
the length of fields are mostly wrong
the maximum of rows to be exported is limited
It's the better way to read the cell values from Excel and write them into a dbf.
Detlef Hoefner wrote:it's no good idea to save an Excel file as dbf file.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 73 guests