Possible Duplicate:
Create Excel file in Java
How to save output in excel format rather than in .txt file?
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.
A great alternative to an actual excel file is a CSV file which stands for Comma Separated Values. Basically you output your data as follows:
With commas between each column, and newlines after each row. If your data has commas in it, you can enclose the data in quotes.
Excel has very good support for loading csv files, and you can even use them as a linked data source in an excel file, and then reference the data from other sheets for graphing, calculations, and pivot tables.