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




If you are serving an HTML page and you want to export to excel, I've found
that you can just add content-disposition below the content-type.

Content-type: text/html
Content-disposition: attachment; filename=SomeFileName.xls


"attachment" tells the browser to download the page rather than render it
in the browser.

Just for some background (may not have anything to do with this
conversation).

I'm using CGIDEV2 to create my webpages. On my reports, I have a link that
says export to excel. When this link is clicked, I run the same program
again but only output the table that holds the data to export. But because
I have the content-disposition in my top section, it asks me to either save
or open the file. I do not write out to the IFS at all.
Since the programs do not take long to run, it doesn't hurt to rerun the
program again to export to excel.


--

Michael Schutte
Admin Professional



Bob Evans Holiday Farmhouse Feast, Serves 6-8 l $74.99
A complete homestyle meal TO GO, ready to heat at home, serve & enjoy!
Perfect for Thanksgiving, Christmas or holiday entertaining.
For more information, visit www.FarmhouseFeast.com





Scott Klement
<midrange-l@scott
klement.com> To
Sent by: Midrange Systems Technical
midrange-l-bounce Discussion
s@xxxxxxxxxxxx <midrange-l@xxxxxxxxxxxx>
cc

01/20/2010 11:05 Subject
AM Re: Opening Excel from AS400


Please respond to
Midrange Systems
Technical
Discussion
<midrange-l@midra
nge.com>






Why STRPCCMD? Why not just send the Excel file to be opened directly by
Excel? What am I missing?

But.. even if you did use STRPCCMD, how is that less secure than opening
up your computer's hard drive to the Internet?!

Mike Cunningham wrote:

Someone in this string said something about using HTTP download
instead of IFS. How exactly did you see that working? Write the file
to the IFS in a location available to Apache, then use STRPCCMD to
launch IE and give IE the url to the apache webservers path to the
IFS, then IE will launch Excel because the file is a .csv? Sounds
much less secure than using an IFS drive mapping that only an
authenticated user can map to.


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

This thread ...

Follow-Ups:
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.