Search code examples
javaeclipseexcelexportnattable

Export Eclipse NAT Table to CSV/Excel


I am currently working on a project that uses a nat table to display data to a user. I am wanting to add an option to export this nat table to a csv file or an excel document. Is there an easy way to export to excel or must I find a way to do it manually? If I must do it "the hard way" can anyone point me somewhere to help me get started on exporting to Excel?

Thanks.


Solution

  • for reading / writing to excel you can use Apache POI http://poi.apache.org/

    for how to get started with Apache POI look at http://viralpatel.net/blogs/java-read-write-excel-file-apache-poi/ might help