Results 1 to 6 of 6
- 05-21-2009, 01:31 PM #1
Member
- Join Date
- Mar 2009
- Posts
- 14
- Rep Power
- 0
Import error for csv file in outlook
Hi,
I have exported my contacts in a csv file , file is created but when i import it into outlook following error message is displayed:
File error has encountered in csv(window) translator while initializing translator to build field map .
But when i open the csv file and save it as in CSV format again , it is imported without any error,
Following is the code to create csv File:
CSVWriter writers = new CSVWriter(new FileWriter("c:\\Contacts.csv"), ',');
writers.writeNext(header);
writers.writeAll(pda.getContacts(login_id), false);
writers.close();
can any one help me?
Thanks.Last edited by nida; 05-21-2009 at 01:45 PM.
- 05-21-2009, 01:51 PM #2
And what package is CSVWriter in?
Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
How To Ask Questions The Smart Way
- 05-23-2009, 10:28 AM #3
Member
- Join Date
- Mar 2009
- Posts
- 14
- Rep Power
- 0
it's com , r u asking about???
- 05-23-2009, 11:14 AM #4
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,545
- Rep Power
- 11
> when i import it into outlook following error message is displayed:
Microsoft plays fast and loose with formats, so it quite possible that opening and saving the file again in whatever their spreadsheet app is called will result in a csv file that Outlook will use without complaining.
Some Java csv libraries (like Ostermiller's) give you an option of saving in a format that Microsoft can understand. But OD is right: you really have to say what package this CSVWriter you are using comes from. It isn't a standard Java class - so unless you say, no-one can know the first thing about it.
- 09-06-2012, 09:54 PM #5
Member
- Join Date
- Sep 2012
- Posts
- 1
- Rep Power
- 0
- 09-07-2012, 01:22 AM #6
Similar Threads
-
Getting access denied error while importing file using input type="file" with IE7
By sarang1 in forum Advanced JavaReplies: 6Last Post: 02-10-2011, 09:55 AM -
error with import java.io.*
By osval in forum New To JavaReplies: 5Last Post: 05-13-2010, 05:03 PM -
how to import a ejb bean in java file
By vijayinani in forum Enterprise JavaBeans (EJB)Replies: 2Last Post: 06-30-2009, 10:05 PM -
how to import war file with tomcat?
By makpandian in forum NetBeansReplies: 0Last Post: 12-31-2008, 11:00 AM -
Pre-Populating an Outlook Email
By KeithHenn in forum Advanced JavaReplies: 3Last Post: 10-23-2008, 03:13 PM


LinkBack URL
About LinkBacks


Bookmarks