0 votes
51 views

Hi, we used to export processes to Excel file with olca-io Java library. On 1.11.0 version, our code was : 

final ExcelExport excelExport = new ExcelExport(excelFile, db, processes);

excelExport.run();

We migrated to 2.1.0 version, but ExcelExport class is no more inside the library. How can we do the same export with this new version ?

Thank you

in openLCA by (160 points)

1 Answer

+1 vote
by (2.7k points)
selected by
 
Best answer
Hi hulky,

The Excel export can now be done with:  

```java
import org.openlca.io.xls.process.XlsProcessWriter;  
XlsProcessWriter.of(Database.get()).writeAllToFolder(processes, dir);
```

The source code can now be found here: [olca-process-xls](https://github.com/GreenDelta/olca-process-xls).

Regards,

François
by (160 points)
It's working, thank you !
...