Hi,
On a regular base I get datafiles from new customers to import and convert their data to use in my application. Normally they deliver XLS files.
I always convert them manually, I add the fieldnames in the first row, and I export to DBF. I was wondering if someone had a tool to do this?
Importing data
Re: Importing data
Hi Chris,
I have used several converters from the below company, they are inexpensive and offer a trial for your review:
http://www.whitetown.com/xls2dbf/
Rick
I have used several converters from the below company, they are inexpensive and offer a trial for your review:
http://www.whitetown.com/xls2dbf/
Rick
Re: Importing data
Why don't you use DC_Excel2WorkArea() ?
The eXpress train is coming - and it has more cars.
Re: Importing data
Can you provide an example of it's use? I can't find any documentation for DC_Excel2WorkArea()
I updated in April. Has it been added since?
GeneB
I updated in April. Has it been added since?
GeneB
Re: Importing data
Hi,
I will check the possibilities of it. The structure of these XLS files is always different.
I will check the possibilities of it. The structure of these XLS files is always different.
Re: Importing data
For a sample, look in \exp19\samples\excel.
The eXpress train is coming - and it has more cars.
Re: Importing data
skiman wrote:I always convert them manually, I add the fieldnames in the first row, and I export to DBF. I was wondering if someone had a tool to do this?
i do find DC_Array2Excel() but not DC_Excel2WorkArea() ?rdonnay wrote:DC_Excel2WorkArea() ... For a sample, look in \exp19\samples\excel.
anyway, both are using Excel as activeX so the "Trick" is
Code: Select all
// select Data in Sheed
oWorkBook:workSheets(1):usedRange:Select
// Row and Col
numRows := oWorkBook:workSheets(1):usedRange:Rows:Count
numColumns := oWorkBook:workSheets(1):usedRange:Columns:Count
// build a empty Array with Row/Col Dimension
FOR i := 1 TO numRows
AADD(aExcel,ARRAY(numColumns))
NEXT
// same as Get_Excel_Column_ID
cEnde := ZAHL2CHR(numColumns)
// assing hole "marked" Sheed to Array
aExcel := oSheet:range( "A1:"+cEnde+LTRIM(STR(numRows)) ):value
greetings by OHR
Jimmy
Jimmy