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,

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;
dcl-s myRegion like(CellRangeAddress);
myRegion = new_CellRangeAddress( peRowFrom
: peRowTo
: 0
: 0);
// Take out the repeating columns portion, it is not supposed
to be used here.

To use it in the program:


-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Mark
Sent: Wednesday, 29 November 2017 6:27 PM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: SetReatingRows and SetRepeating Columns

So what you are doing is setting columns A-E to repeat when the
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 ...


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

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