× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Thanks Kurt,

That looks like what I need!!

A couple of questions if you can advise please.

Do you know if POI3.8 is a late enough version to support this ?

We already have the ss_begin_object_group(100);

The archive indicates we need to add the D Specs below into the HSSF_H
member ...

But I am not understanding how just defining these will change the
processing to create the file on disk as opposed to in memory - do I need
to make any changes to either my program or the HSSFR4 service program ?

Any example or snippet of code would be appreciated.

D SXSSF_Workbook_Class...
D C 'org.apache.poi.xssf.streaming-
D .SXSSFWorkbook'
D SXSSFWorkbook S O CLASS(*JAVA:
SXSSF_WORKBOOK_CLASS)

D SXSSF_Workbook_Class...
D C 'org.apache.poi.xssf.streaming-
D .SXSSFWorkbook'
D SXSSFWorkbook S O CLASS(*JAVA:
SXSSF_WORKBOOK_CLASS)

*-----------------------------------------------------------------
* SXSSF_dispose(): Delete temporary file when done with save
*------------------------------------------------------------------
D SXSSF_dispose PR n
D EXTPROC(*JAVA
D : SXSSF_Workbook_Class
D :'dispose')


Thank you for your kind assistance

Don Brown





From: "Kurt Braman" <kbraman@xxxxxxxxxx>
To: "Midrange Systems Technical Discussion" <midrange-l@xxxxxxxxxxxx>
Date: 13/09/2017 11:17 PM
Subject: Re: Java exception "java.lang.OutOfMemoryError: Java heap
space" when calling ...
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>



Don,

I use to encounter the same issue when building large excel files. Check
out the following links in the Midrange-L archive that discuss the
solution
that I found works to eliminate the out of memory error that java was
having. Since I switched to this method of building the excel file, I have
not had the memory error.

New SXSSF spreadsheet generation
https://archive.midrange.com/rpg400-l/201412/msg00087.html

POI Large File
https://archive.midrange.com/rpg400-l/201512/msg00034.html


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.