SoftMaker.com

English-Language Support
It is currently Sat May 25, 2013 2:22 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sun Apr 17, 2011 4:56 pm 
Offline

Joined: Sun Apr 17, 2011 4:37 pm
Posts: 3
I just purchased SoftMaker Office 2010 a few days ago and I'm currently using it to create some mailing labels. While the label functionality seems fairly rudimentary, it will certainly get the job done. However, I noticed something I find odd when using a CSV file as the input database.

When TextMaker parses the fields from the CSV file, leading spaces in each field are kept instead of purged. This is very non-standard and complicates the creation of the CSV by making it much less readable.

So, it seems that TextMaker wants a CSV formatted as follows:

Name,Address,City,State,Zip
Tom Smith,123 My Town,TheTown,CA,12345

As opposed to the much more readable:

Name, Address, City, State, Zip
Tom Smith, 123 My Town, TheTown, CA, 12345

A typical CSV parser would ignore leading and trailing spaces within a CSV field. If the spaces are intended to be kept, the field should be enclosed with double quotes.

If I attempt to use the more readable form shown above, the parser ends up with these fields:

"Name"
" Address"
" City"
" State"
" Zip"

So, adding a format specifier like {Address} to the label will not match the above (which needs to be { Address}, and the field is skipped.

Can the CSV parser be improved to work according to the CSV spec?

Jeff


Top
 Profile  
 
PostPosted: Wed Apr 27, 2011 12:35 pm 
Offline
SoftMaker Team
SoftMaker Team

Joined: Wed Apr 09, 2008 7:26 am
Posts: 4550
Location: Nuremberg
I referred your suggestion to improve TextMakers CSV export to our developers.

_________________
Sven Leßmann
SoftMaker Software GmbH


Top
 Profile  
 
PostPosted: Wed Apr 27, 2011 6:38 pm 
Offline

Joined: Sun Apr 17, 2011 4:37 pm
Posts: 3
sven-l wrote:
I referred your suggestion to improve TextMakers CSV export to our developers.

Actually, the request was for a CSV import improvement. I assume that's what you meant...

Jeff


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group