# Java Service to convert StringList and DocList to XLS - ToExcel Utility

**URL:** <https://techcommunity.softwareag.com/t/java-service-to-convert-stringlist-and-doclist-to-xls-toexcel-utility/237254>\
**Category:** Knowledge base\
**Tags:** excel, java-service\
**Created:** [June 15, 2019, 3:03am UTC](https://techcommunity.softwareag.com/t/java-service-to-convert-stringlist-and-doclist-to-xls-toexcel-utility/237254 "2019-06-15T03:03:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahesh\_K\_Sreenivas](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/mahesh_k_sreenivas/32/299_2.png) [@Mahesh\_K\_Sreenivas](https://techcommunity.softwareag.com/u/Mahesh_K_Sreenivas)\
**Post date:** [June 15, 2019, 3:03am UTC](https://techcommunity.softwareag.com/t/java-service-to-convert-stringlist-and-doclist-to-xls-toexcel-utility/237254/1 "2019-06-15T03:03:47Z")

</div>

Hi All,

Attached is the java utility service that will convert StringList/DocList/StringTable to XLS and the same can be saved or emailed.&nbsp;

Note: The service uses "poi-4.1.0.jar" and it is embedded in the IS package, the code has been tested on IS 10.4 with JDK&nbsp;1.8.0\_201 (52.0)

By default the file gets saved at the location "C:\SAG\_Home\IntegrationServer" and this can be overridden by specifying the input file path "file\_name" in the core java services:

**ToExcel.util:docListToMSExcel  
ToExcel.util:stringListToMSExcel**

**ToExcel.helper:stringTableToDocList (helper service to convert StringTable to DocList)**

Refer to the below demo services and contact me if you have any questions.

**ToExcel.demo:docListToExcel  
ToExcel.demo:stringListToExcel  
ToExcel.demo:stringTableToExcel**

Thanks,

Mahesh K Sreenivasulu

[ToExcel.zip](https://techcommunity.softwareag.com/uploads/short-url/nDZOQimWIGFYt6Cil5oTb1QpbT2.zip) (2.44 MB)
