|
list-----Message d'origine-----
[mailto:midrange-l-bounces@xxxxxxxxxxxx] De la part de
Michael_Schutte@xxxxxxxxxxxx
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,
I think you may have attached some code to your post, but it didn't
get through. I Would love to see some code.
Mike Cunningham wrote:
Someone in this string said something about using HTTP download
instead of IFS.
Someone? (!)
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
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 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.