© 2025 InterSystems Corporation, Cambridge, MA. All rights reserved.Privacy & TermsGuaranteeSection 508Contest Terms
Initial Release
ObjectScript part for apache-poi integration. Allows reading xlsx.
poi.jar from latest release.poi.jar into one directory, later referenced as <DIR-WITH-JARS>. Caché should have access to this directory.set ^POI("DIR")=##class(%File).NormalizeDirectory("<DIR-WITH-JARS>")Write $System.Status.GetErrorText(##class(isc.poi.Utils).createGateway(name, home, path, port)), where:
name is a name of the Java Gateway, defaults to POI.home path to Java 1.8 JRE. Defaults to JAVA_HOME environment variable.path is a path to jars, should be set automatically.port Java Gateway port. Defaults to 55556.Write $System.Status.GetErrorText(##class(isc.poi.Utils).updateJar())Write $System.Status.GetErrorText(##class(isc.poi.Utils).getBook(file, .book))Excel books are loaded into isc.poi.Book objects. Check it for API documentation.