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



-----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? (!)

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.