Because the users will want to use or alter that formula.
________________________________
From: "Wintermute, Sharon" <Sharon.Wintermute@xxxxxxxxxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Sent: Wednesday, July 8, 2009 3:51:47 PM
Subject: RE: AS400 file with formulas into Excel
Why not do the calc in sequel and let it go?
Sharon Wintermute
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jeff Wilson
Sent: Wednesday, July 08, 2009 2:36 PM
To: Midrange Systems Technical Discussion
Subject: Re: AS400 file with formulas into Excel
What is POI? I tried XML and it didn't work. HTML did, but these are
going to users that will want an XLS extension, so I was hoping to do it
that way. I am 99% there, but just need to click inside that cell to get
the formula result to show up instead of the formula. I was hoping that
there was a control character or something I could do in SQL to get it
to come down correctly.
________________________________
From: Charles Wilt <charles.wilt@xxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Sent: Wednesday, July 8, 2009 3:12:49 PM
Subject: Re: AS400 file with formulas into Excel
I second the idea that CSV isn't going to work.
As Pete says, POI is one option. Another is outputting .XML
HTH,
Charles
On Wed, Jul 8, 2009 at 2:40 PM, Pete Helgren<Pete@xxxxxxxxxx> wrote:
Are you outputting to a CSV file? Or are you writing to a POI
interface? If it is the latter, I'd have to see some code to
understand
how you are writing to the cell. If it is the former, to my knowledge
there isn't any way to write a formula to a cvs file that get
"interpreted" into a formula.
Pete
Jeff Wilson wrote:
I can create a file in SQL that has formulas in it (i.e. '=A1*B1')
and I can send them to my PC and open them in Excel 2002. However, the
formulas are showing instead of the results. If I click inside the cell
and hit Enter, I get the value instead of the formula. BUT, I want this
automated and don't want a macro, so I want this to be opened to show
the formula result instead of the formula without doing anything. I
tried using CAST to a few other types, but that didn't work. It works if
I send it as a HTML, but would prefer the xls extension, if possible.
Thanks for any thoughts on this.
-Jeff
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.