title: How to write Dataset to a excel file using hadoop office library in apache spark java
body: <p>Currently I am using <strong>com.crealytics.spark.excel</strong> to read an Excel file, but using this library I can't  write the dataset to an Excel file.</p>
  
  <p>This <a href="https://snippetessay.wordpress.com/2017/01/08/readingwriting-excel-documents-with-the-hadoopoffice-library-on-hadoop-and-spark-first-release" rel="nofollow noreferrer">link</a> says that using hadoop office library (<code>org.zuinnote.spark.office.excel</code>) we can read and write to Excel files </p>
  
  <p><strong>Please help me to write dataset object to an excel file in spark java.</strong></p>