Importing tab delimited data into OpenOffice.org
Bill Campbell
linux-sxs
Sat Feb 5 19:22:25 PST 2005
I've been beating my head against what should be a simple problem using
openoffice.org spread sheets. I want to import tab separated data into a
spreadsheet with very simple data. There are four fields checkno, date,
description, and amount where the first field is alphanumeric, second a
date, third alphanumeric, and fourth a decimal. This probably has to be
done with text data sources as the data is to be merged into a spreadsheet
without clobbering everything that's there.
My problem is getting OO-calc to get the correct data types. I've tried
several permutation with and without quotes, the most recent being to put
double quotes around the text fields leaving the date and amount fields
unquoted. I have set the text info in data sources admin. to use tab
delimiters with double quotes on text data. Unfortunately this now imports
the date field as text, and the amount field as a date. To make matters
worse, it sometimes works properly.
I can probably create DBASE compatible files where the types would be in
the headers, but I should think that tab delimited ascii would work.
Bill
--
INTERNET: bill at Celestial.COM Bill Campbell; Celestial Software LLC
UUCP: camco!bill PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/
Many companies that have made themselves dependent on [the equipment of a
certain major manufacturer] (and in doing so have sold their soul to the
devil) will collapse under the sheer weight of the unmastered complexity of
their data processing systems.
-- Edsger W. Dijkstra, SIGPLAN Notices, Volume 17, Number 5
More information about the Linux-users
mailing list