Hi,

Yes, I did that at my previous employer (it was about 9ish years ago).  It was much, much, much faster than POI, used less memory, etc.  We had a big Excel project, and POI took hours to generate the spreadsheet, whereas writing XML took only about 30 seconds.

It might even be easier nowadays since we have tools like DATA-GEN.

Unfortunately, since I no longer work there, I don't have access to the code.  And, I don't do anything with spreadsheets these days, so haven't tried to write any equivalent in RPG.

You might consider using the tools in other languages.. just about any open source language (not just Java) has tools for making Excel documents.  I've used ExcelJs for Node.js -- this works really nicely.  In fact, if I were to write my own RPG Excel tool today, i'd probably model it on ExcelJs, much nicer to work with than POI.

-SK

On 12/15/2020 2:34 PM, Darren Strong wrote:
We've gotten pretty good at generating spreadsheets with POI HSSF and the JNI interface, but, the JNI interface is not efficient and the POI HSSF versions march on while we've frozen our updates due to the move to enums in that tool. Now, IBM has come a long way in helping us generate XML and writing it to the IFS, which Excel is based on. Has anyone had success generating the .xlsx file structure directly as XML files and then zipping it up in the format that Excel likes? Is there some documentation on the web I'm not able to find that might give some detail and examples on this? I would guess that this method would be very fast compared to what we're using now.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.