× 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.



Another possibility is that the app running on iPhone is not handling all the capabilities of Excel - this is especially true of the Numbers app that Apple sells - very limited. When creating XLSX files using CGIDEV2 and trying to avoid the shared strings XML creation, I tried "inlinestr" as a data type - it showed nothing. When I enclosed text in the simplest -possible formulas =("text string") it displayed just fine.

On 4/6/2016 3:05 PM, Roche, Bob wrote:
Thanks for the great explanation. I'll check the POI website for the ability to store a value in a formula cell.

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of John Yeung
Sent: Wednesday, April 06, 2016 3:00 PM
To: RPG programming on the IBM i (AS/400 and iSeries) <rpg400-l@xxxxxxxxxxxx>
Subject: Re: XLS from RPGLE

On Wed, Apr 6, 2016 at 3:50 PM, Roche, Bob <broche@xxxxxxxxxxxxxxxxx> wrote:
I am using Scott Klement's port of HSSF POI to create a few spreadsheets from RPGLE programs. These are then sent by email and look fine in Excel. I have one person trying to view them on their IPhone and the formulas do not show properly. It always displays 0. In excel I see =SUM(B1:B9) for example. Has anyone come across this before? If I save the spreadsheet off in excel with a new name and then email it they formulas work properly.
Yes, that is normal. The storage for formulas and "evaluated" values are separate. How Excel (the genuine article from Microsoft) does it is that it writes both upon saving the file. But third-party writers, as a rule, do not do this. Some give you the capability to write your own value (that you calculate yourself), as well as your own formula, in the same cell. I don't know if POI allows this.

So on the reading end of things, of course genuine Excel will automatically re-evaluate formulas by default; third-party readers (like the one used on the iPhone, but really just about everything other than genuine Excel) typically just read the stored value, and if nothing was explicitly written there, it comes up as zero.

John Y.
--
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=rRQyAIq4sBNnNVrLn2zoylnhItgpW4nrVasBLPi_g1Y&s=1bTO4oLuNGZg91s0fNXzck_1F1jQ6sa21fZxtc1oisI&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=rRQyAIq4sBNnNVrLn2zoylnhItgpW4nrVasBLPi_g1Y&s=mTbLhr51jDaQVjuts-WBLGrTo6DW33QXVOzrGDvge5E&e= .

Please contact support@xxxxxxxxxxxx for any subscription related questions.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

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.