|
Thanks Scott! I remember those articles when they came out, but just couldn't where they were. Jeff Stevens Mize, Houser & Co. P.A. 913 451 1882 JStevens@xxxxxxxxxxxxxx Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx> Sent by: rpg400-l-bounces@xxxxxxxxxxxx 10/26/2006 12:46 PM Please respond to RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx> To RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx> cc Subject Re: Reading MS EXCEL file from RPG The HSSF toolkit provides two ways of reading/parsing a spreadsheet. They call them the "EventModel" and "UserModel". Personally, I've found the EventModel to be less error prone, and quicker when you need to read the entire sheet and not make any changes to it. I demonstrated this technique in the following article (requires a membership to the System iNetwork, but a free ("Associate") membership should suffice) http://tinyurl.com/y33oxy The UserModel is better for accessing particular rows and columns if you need to do so in a random order, rather than sequentially reading the whole sheet. It's also capable of updating a spreadsheet. I initially discussed this technique in the following article (same membership requirement): http://www.systeminetwork.com/article.cfm?id=19586 But, be sure to use the newer code with all of the bug fixes that I released earlier this year in this article (same membersup requirements: http://www.systeminetwork.com/article.cfm?id=52713
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.