Leading zeroes in CSV documents

Discuss the spreadsheet application
Post Reply
Miah
Posts: 1
Joined: Thu Sep 24, 2009 4:43 pm

Leading zeroes in CSV documents

Post by Miah »

We are presently using a lab file solution for printing bulk jobs of photographs. This includes adding groups.

Presently, the system prints out one group at a time and everything is in essence pre-sorted. The program however requires leading zeroes, and OO.o strips leading zeroes upon resaving the CSV file, meaning that if we need to edit something in the lab file, the bulk is going to print out of order.

Is there an option to force OO.o to respect leading zeroes on CSV imports?
OpenOffice 2.4 on Windows XP
User avatar
Villeroy
Volunteer
Posts: 31349
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Leading zeroes in CSV documents

Post by Villeroy »

If the numbers are quoted, Base will obey the quotes and serve the text to any document as literal text. One of many reasons why one should always connect a Base document to a directory of csv and then work with import ranges in spreadsheets.

In Calc's text import dialog you have to specify the column as "Text" every time you open such a file. Right-click the column in the preview and choose "Text". You can also select more than one column and choose "Text" from the list box.
Column type "Standard" means: treat each value exactly like manually entered.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply