This email is to be read subject to the disclaimer below.
Can I just add that you don't have to have the content in CSV format...
Excel (Office 2000 anyway, haven't tested other versions) has this
wonderful undocumented feature that lets you open a HTML file with an .xls
extension and display it as if it was an ordinary spreadsheet (with the
possible limitation that the HTML content should consist of a single table
only). We use this method as it allows formatted text, spanned columns /
rows, etc in the spreadsheet -- and it's easy to do.
Cheers,
Vik
---------------------
Viktor Radnai
Web Developer, National E-Commerce, Ernst & Young
Direct: +61 2 9248 4361
"Phil Evans"
<[EMAIL PROTECTED]> To: "CFAussie Mailing List"
<[EMAIL PROTECTED]>
Sent by: cc:
[EMAIL PROTECTED] Subject: [cfaussie] RE: CFCONTENT Tag
Disabled by ISP
mon.com.au
04/04/2003 09:57 AM
Please respond to "CFAussie
Mailing List"
Barry,
If you're still in an intranet / IE environment, then the code in my
original post will work beautifully.
Just follow it up with the spreadsheet content in CSV format.
If I find a way to do it without CFContent, I'll post it.
Phil.
----- Original Message -----
From: "Beattie, Barry" <[EMAIL PROTECTED]>
To: "CFAussie Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, April 04, 2003 9:45 AM
Subject: [cfaussie] RE: CFCONTENT Tag Disabled by ISP
> if you do get this going, ca you be tempted in dropping a line on how it
> worked?
>
> this used to be easy in an ASP/intranet(IE5 only) environment but I've
tried
> with CF and gave up (more important stuff to do - not really CF fault)
>
> cheers
> barry.b
>
> -----Original Message-----
> From: Phil Evans [mailto:[EMAIL PROTECTED]
> Sent: Friday, 4 April 2003 9:38 AM
> To: CFAussie Mailing List
> Subject: [cfaussie] RE: CFCONTENT Tag Disabled by ISP
>
>
> Thanks Lindsay.
>
> I'll play around with CFHeader and see how far I get.
>
> Cheers,
> Phil.
>
> ----- Original Message -----
> From: "Lindsay Evans" <[EMAIL PROTECTED]>
> To: "CFAussie Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, April 04, 2003 9:33 AM
> Subject: [cfaussie] RE: CFCONTENT Tag Disabled by ISP
>
>
> >
> > > a) Are they being reasonable, or paranoid?
> >
> > I'd say reasonable, if it's a shared hosting environment.
> >
> > > b) Can anyone provide reasons as to why is does / does not need to be
> > disabled?
> >
> > Just think of the fun your friendly neigbourhood script kiddie could
have
> > with:
> >
> > <cfcontent file="C:\Inetpub\[your site]\index.cfm" deletefile="Yes"/>
> >
> > I'd imagine there would be some way (using sandboxes or whatever) to
> > restrict the use of <cfcontent> etc. to certain directories? ie. just
the
> > user's home directory.
> >
> > > c) Assuming I have no joy in getting the tag enabled, does anyone
have
a
> > good workaround for creating and
> > > returning info suitable for loading into a spreadsheet?
> >
> > In theory, you could send a content-type http header using <cfheader>:
> > <cfheader name="Content-type" value="application/vnd.ms-excel"/>
> >
> > But in my (rather limited) experiments, this doesn't work quite as
> planned.
> >
> > I got nothing :)
> >
> > --
> > Lindsay Evans.
> > Developer,
> > Red Square Productions.
> >
> > [p] 8596.4000
> > [f] 8596.4001
> > [w] www.redsquare.com.au
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of Phil Evans
> > Sent: Friday, April 04, 2003 9:09 AM
> > To: CFAussie Mailing List
> > Subject: [cfaussie] CFCONTENT Tag Disabled by ISP
> >
> >
> > Hi All,
> >
> > I have app that is supposed to return a spreadsheet back to the
browser.
> > Works beautifully on dev PC, with code being
> >
> > <CFHEADER NAME="Content-Disposition" VALUE="inline;
> filename=#myfilename#">
> > <CFCONTENT TYPE="application/vnd.ms-excel">...
> >
> > I loaded it up to a large, central ISP, and then found that the
CFCONTENT
> > tag was disabled.
> > I contacted the ISP, who responded with
> >
> > "Unfortunately the CFCONTENT tag has been disabled on our shared
hosting
> > platform by our Senior Technicians, due to security reasons.
Unfortunately
> > it cannot be enabled."
> >
> > I need to know
> >
> > a) Are they being reasonable, or paranoid?
> > b) Can anyone provide reasons as to why is does / does not need to be
> > disabled?
> > c) Assuming I have no joy in getting the tag enabled, does anyone have
a
> > good workaround for creating and returning info suitable for loading
into
> a
> > spreadsheet?
> >
> > Thanks,
> > Phil.
> >
> >
> > ---
> > You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> > To unsubscribe send a blank email to
> [EMAIL PROTECTED]
> >
> > MX Downunder AsiaPac DevCon - http://mxdu.com/
> >
>
>
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
> [EMAIL PROTECTED]
>
> MX Downunder AsiaPac DevCon - http://mxdu.com/
>
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
[EMAIL PROTECTED]
>
> MX Downunder AsiaPac DevCon - http://mxdu.com/
>
---
You are currently subscribed to cfaussie as:
[EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/
--------------------
NOTICE - This communication contains information which is confidential and
the copyright of Ernst & Young or a third party.
If you are not the intended recipient of this communication please delete
and destroy all copies and telephone Ernst & Young on 1800 655 717
immediately. If you are the intended recipient of this communication you
should not copy, disclose or distribute this communication without the
authority of Ernst & Young.
Any views expressed in this Communication are those of the individual
sender, except where the sender specifically states them to be the views of
Ernst & Young.
Except as required at law, Ernst & Young does not represent, warrant and/or
guarantee that the integrity of this communication has been maintained nor
that the communication is free of errors, virus, interception or
interference.
Liability limited by the Accountants Scheme, approved under the
Professional Standards Act 1994 (NSW)
--------------------
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/