In java, Is there a elegant way to Generate Excel spreadsheet from List?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are two possible and radically different approaches:
Write a CSV file. That’s comma-separated, you just write out your fields, separated by commas, into a file with a .csv extension. Excel can read that just fine and it’s dramatically simple.
Use Apache/Jakarta POI, a library, to write perfectly formatted, Office-compatible Excel files (Excel 95, 2003, … various standards). This takes a bit more work.