Hi Mark

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.


This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2019 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].