Ask Your Question
0

Import csv with multi-line fields into LO base [closed]

asked 2012-05-03 16:08:14 +0200

Geert Janssens gravatar image Geert Janssens
1 1 1 1

updated 2013-02-22 06:56:55 +0200

qubit gravatar image qubit flag of United States
5816 3 50 43

I'm trying to import a csv file in libreoffice base. The peculiar thing about this csv file is that is contains fields with multi-line content.

I first opened the csv file in calc, which worked fine. Calc effectively displays the multi-line fields as multi-line.

Next I copied all cells and pasted them into an existing libreoffice base database table. While Calc handles the multi-line fields correctly, Base seems to discard any multi-line information. In base the field only holds one line, concatenating all the lines that make up the multi-line field. The field type in the table is TEXT/VARCHAR and is long enough to hold all the information.

Opening the table via a form also suggests the multi-line information has been stripped in the copy-past operation. I have created a form in which the field is displayed in a mult-line enabled text field, but all is shown as a single (long) line.

Any ideas how I can import multi-line content in a Base table ?

delete reopen flag offensive retag edit

The question has been closed for the following reason "question is not relevant or outdated" by qubit
close date 2013-04-28 02:21:56.430032

2 Answers

Sort by » oldest newest most voted
1

answered 2012-08-17 22:05:20 +0200

DonLow gravatar image DonLow
182 4 13

I started to comment,but since I really believe this will work, I decided to post it as an answer. Since Calc opens your CSV file correctly, can you simply then save the Calc file in .ods format, and then open the ODS file in Base?

link delete flag offensive edit

Comments

@Geert Janssens -- Does this answer work for you? If not, please describe the issue(s).

qubit ( 2013-03-13 14:24:32 +0200 )edit
0

answered 2012-05-03 20:44:28 +0200

mahfiaz gravatar image mahfiaz flag of Estonia
2031 19 20

Is this what you are after? (see the last comment)

http://user.services.openoffice.org/en/forum/viewtopic.php?f=13&p=144391

http://www.oooforum.org/forum/viewtopic.phtml?t=110116

link delete flag offensive edit

Comments

Thank you for your reply. These two threads deal with the opposite of what I'm trying to accomplish. They explain how to export from base to csv while preserving multi-line fields. I tried the tip of using a memo type field as import field, but still during the import any newlines are stripped.

Geert Janssens ( 2012-05-04 10:09:55 +0200 )edit

I am afraid I cannot help you then. I hope someone else has the answer.

mahfiaz ( 2012-05-04 21:08:13 +0200 )edit

Donate

LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2012-05-03 16:08:14 +0200

Seen: 746 times

Last updated: Aug 17 '12