×
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, I did not even consider that the columns are not supposed to
repeat, and only realized now I used the function incorrectly when I read
your comments. I have excluded the ssSheet_setRepeatingColumns portion in
my sub-procedure and the issue is now resolved. Thank you for the help,
appreciated:
Here is the final working sub-procedure:
dcl-proc ss_SetRepeatingHeaders;
dcl-pi ss_SetRepeatingHeaders;
peSheet like(HSSFSheet);
peRowFrom like(jint) value;
peRowTo like(jint) value;
End-Pi;
dcl-s myRegion like(CellRangeAddress);
//
myRegion = new_CellRangeAddress( peRowFrom
: peRowTo
: 0
: 0);
ssSheet_setRepeatingRows(sheet:myRegion);
// Take out the repeating columns portion, it is not supposed
to be used here.
//ssSheet_setRepeatingColumns(sheet:MyRegion);
hssf_freeLocalRef(myRegion);
end-proc;
To use it in the program:
ss_SetRepeatingHeaders(Sheet:RowCount:RowCount);
Pieter
-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Mark
Murphy
Sent: Wednesday, 29 November 2017 6:27 PM
To: RPG programming on the IBM i (AS/400 and iSeries)
<rpg400-l@xxxxxxxxxxxx>
Subject: Re: SetReatingRows and SetRepeating Columns
So what you are doing is setting columns A-E to repeat when the
spreadsheet
is more than one page wide. It is probably expecting you to have
non-repeating columns as well. If you just want the rows to repeat, use
ssSheet_setRepeatingRows by itself.
As an Amazon Associate we earn from qualifying purchases.
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.