cancel
Showing results for 
Search instead for 
Did you mean: 

How to write content into Excel

refur
Champ in-the-making
Champ in-the-making
Example:

<javascript>
      var carpetaReporte = companyhome.childByNamePath("Sites/comex-y-logistica/documentLibrary/Comex y Logistica");
      var logFile = carpetaReporte.childByNamePath("backuplog.xlsx");
   
           logFile = carpetaReporte.createFile("backuplog.xlsx");
   
      logFile.content += "test";

</javascript>

I can create the Excel file and write some content, but I want to separate in cells, rows, etc. Is it possible?
2 REPLIES 2

angelborroy
Community Manager Community Manager
Community Manager
You could use Apache POI on a Java webscript, but I think that it is not possible to achieve this from JavaScript API.
Hyland Developer Evangelist

kaynezhang
World-Class Innovator
World-Class Innovator
If you really want to use javascript api , you can try to write javascript data to CSV file,office excel can open it correctly.