I guess it's a good thing I was using HSSF. After Buck mentioned the XSSF version I tried to find them in the java classes and could not. It all makes sense now.
I should also remember to say HSSF or XSSF when I ask for help.
-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Kevin Bucknum
Sent: Friday, July 08, 2016 8:58 AM
To: RPG programming on the IBM i (AS/400 and iSeries) <rpg400-l@xxxxxxxxxxxx>
Subject: RE: hssf poi conditional formatting.
Sorry - that was me. I had XSSF on the brain. HSSF were introduced well before 3.6. It's the XSSF that were introduced in 3.8. I'm in the process of cataloging all of the reporting we do for clients and part of that was looking at converting the existing .xls spreadsheets we create to .xlsx
Kevin Bucknum
Senior Programmer Analyst
MEDDATA/MEDTRON
Tel: 985-893-2550
-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Roche, Bob
Sent: Friday, July 08, 2016 8:33 AM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: RE: hssf poi conditional formatting.
Yes, that is what I'm trying to use. My samples were all still HSSF not XSSF, but the same idea. Why can't users just like reports?
Someone else posted about version 3.6 version 3.8. We have 3.6 on the system to match Scott's wrapper. And it does have the conditional formatting classes under the org.apache.poi.hssf.usermodel class.
-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Buck Calabro
Sent: Thursday, July 07, 2016 3:54 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: hssf poi conditional formatting.
On 7/7/2016 3:46 PM, Roche, Bob wrote:
Does anyone have sample of using conditional formatting in RPG when
building a spreadsheet using HSSF POI?
No, I haven't needed that yet.
I have a sheet with calculations. If the value is negative make it red
and bold. Sounds easy I thought.
Well, it's easy if you cheat. Instead of writing a conditional formatting rule, I actually format each of the cells. Doesn't much help the user with 'what-if' scenarios, but it works for the snapshot sort of things we've been doing to date.
For those following along, I think we're talking about XSSFConditionalFormatting and XSSFConditionalFormattingRule
--
--buck
Visit wiki.midrange.com and register for an account. Edit a page that helps you, and because it's public, you'll help someone else, too!
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.midrange.com_m
ailman_listinfo_rpg400-2Dl&d=CwICAg&c=S6jE3hMA0s16gx2_CUBBn4vjc1odLunI6M
Svd_AfdV8&r=Ub_YbVSedaHB7-0yGANN94iTrfkU2nCKT1D5-5Jv01Y&m=ncJppWqpYnsufW
zFVlsz6Q9Mmz325hc5x91FxvdOfEY&s=E_g5kUpMzOHKKtKJqH0C8rP3vncOT5-NdPKQvDKn
PLk&e=
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://urldefense.proofpoint.com/v2/url?u=http-3A__archive.midrange.com
_rpg400-2Dl&d=CwICAg&c=S6jE3hMA0s16gx2_CUBBn4vjc1odLunI6MSvd_AfdV8&r=Ub_
YbVSedaHB7-0yGANN94iTrfkU2nCKT1D5-5Jv01Y&m=ncJppWqpYnsufWzFVlsz6Q9Mmz325
hc5x91FxvdOfEY&s=hwdrl0OKHPPabKCgp9RTD6WPdFF0oOJQdbvTFehJnEs&e= .
Please contact support@xxxxxxxxxxxx for any subscription related questions.
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.midrange.com_mailman_listinfo_rpg400-2Dl&d=CwICAg&c=S6jE3hMA0s16gx2_CUBBn4vjc1odLunI6MSvd_AfdV8&r=Ub_YbVSedaHB7-0yGANN94iTrfkU2nCKT1D5-5Jv01Y&m=BN4O3nfTFCFqB5GxoVWSKM2SDgjYo274F13Eb811PX4&s=6jierkokLa-3wJ3s2XonQceD2ujWAwz5FdbAhG1OOBQ&e=
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://urldefense.proofpoint.com/v2/url?u=http-3A__archive.midrange.com_rpg400-2Dl&d=CwICAg&c=S6jE3hMA0s16gx2_CUBBn4vjc1odLunI6MSvd_AfdV8&r=Ub_YbVSedaHB7-0yGANN94iTrfkU2nCKT1D5-5Jv01Y&m=BN4O3nfTFCFqB5GxoVWSKM2SDgjYo274F13Eb811PX4&s=R7R3mEkNqy-1KRXcG3zujY2AXr4IRK7Fu80-mFIXVF4&e= .
Please contact support@xxxxxxxxxxxx for any subscription related questions.
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.midrange.com_mailman_listinfo_rpg400-2Dl&d=CwICAg&c=S6jE3hMA0s16gx2_CUBBn4vjc1odLunI6MSvd_AfdV8&r=Ub_YbVSedaHB7-0yGANN94iTrfkU2nCKT1D5-5Jv01Y&m=BN4O3nfTFCFqB5GxoVWSKM2SDgjYo274F13Eb811PX4&s=6jierkokLa-3wJ3s2XonQceD2ujWAwz5FdbAhG1OOBQ&e=
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://urldefense.proofpoint.com/v2/url?u=http-3A__archive.midrange.com_rpg400-2Dl&d=CwICAg&c=S6jE3hMA0s16gx2_CUBBn4vjc1odLunI6MSvd_AfdV8&r=Ub_YbVSedaHB7-0yGANN94iTrfkU2nCKT1D5-5Jv01Y&m=BN4O3nfTFCFqB5GxoVWSKM2SDgjYo274F13Eb811PX4&s=R7R3mEkNqy-1KRXcG3zujY2AXr4IRK7Fu80-mFIXVF4&e= .
Please contact support@xxxxxxxxxxxx for any subscription related questions.
As an Amazon Associate we earn from qualifying purchases.