Julian,
I was able to get the origonal extension up and running on a fresh install
of Lucee. Steps to reproduce:
- Download both ExtensionProvider.cfc and cfpoi.zip from this link:
GitHub - teamcfadvance/cfspreadsheet-railo: My Railo Extension provider including CFPOI (<cfspreadsheet>)
- Change all references from “railo” to “lucee” (be sure to make
case-sensitive changes)
- Install via the ‘Semi-Automatic “Spoofed Provider” Installation via
Railo Admin GUI’ method using the modified file from above and of course
use “luceeExtensionProvider” rather than “RailoExtensionProvider”
That’s it. It installs perfectly and can run all of the tests from the
“cfspreadsheet-examples.zip” as well as all of my applications.
The tricky part is modifying the .class files inside
“poi-export-utility.jar” from all instances of the string “railo” to
“lucee”. These are the class files that need modifying:
WorkbookExport.class (1 instance of “railo”)
XLSToQuery.class (21)
XLSXCSVHandler.class (1)
XLSXHandler.class (1)
XLSXQueryHandler.class (21)
XLSXSimpleHTMLHandler.class (1)
Also of note: it appears that the 3 jars that come in the ooxml-lib folder
are unnecessary as they are already loaded in Lucee (for the time being
anyways):
dom4j-1.6.1.jar
geronimo-stax-api_1.0_spec-1.0.jar
xmlbeans-2.3.0.jar
So I further modified the install to exclude those as well and all is well.
HTH anyone having issues getting this installed ib Lucee.On Friday, February 13, 2015 at 12:22:03 PM UTC-8, Julian Halliwell wrote:
Andrew, it seems that Micha intended to implement ACF’s spreadsheet
functionality in the core 3 years ago and made a small start:
https://issues.jboss.org/browse/RAILO-1749
But that was abandoned, presumably because it was deemed not
appropriate for the core after all. SpreadsheetNew() does seem to work
without the extension, but I couldn’t get SpreadsheetWrite() to do
anything. Clearly not reliable and likely to be removed in 5.0.
I’ve been working on my standalone library today and have managed to
get “read” functionality partially working in Lucee. Basically it will
read an xls file into a query object, but not CSV or HTML at present.
Also specifying column/row ranges and column names other than the
header row isn’t there yet, neither is reading a named sheet (reading
by sheet number is, however).
It needs more work and some tests (on the way), but I do plan to match
as much of the old extension functionality as I can.
I realise though that unlike the extension, it would involve folks
changing application code, so my aim is also to fork the Railo
extension and replace the faulty “read” elements with what I’ve come
up with.
It would be great if you and others could test the library in Lucee to
iron out any issues before I back-port it to the extension.
GitHub - cfsimplicity/spreadsheet-cfml: Standalone library for working with spreadsheets in CFML
Cheers
Julian.
On 13 February 2015 at 19:12, ADK <and...@leftbower.com <javascript:>> wrote:
Julian - yes, “reading” spreadsheets is all I actually need to do. It
appears that spreadsheet writing is already part of Lucee core:
Bitbucket
So there appears to be some duplication going on?