>- see footer for list info -<
Certainly is my friend.... works a treat... thank you

On 3/28/06, Richard Wild <[EMAIL PROTECTED]> wrote:
>
> >- see footer for list info -<
> <cfsavecontent> is your friend.
>
> <cfsavecontent variable="repcontent">
> <html>
> <head>
> <title>Report</title>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> </head>
>
> <body>
> <h1>blah</h1>
> yo yo yo
> </body>
> </html>
> </cfsavecontent>
>
> If your code is within <cfsetting enablecfoutputonly="yes"> tags then
> you'll
> need a <cfoutput> in the <cfsavecontent> or nothing will be saved into the
> variable.
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of RichL
> Sent: 28 March 2006 09:45
> To: cfdev
> Subject: [CF-Dev] Using CFFile to save an html report file
>
> >- see footer for list info -<
> Morning guys
>
> I want to output a load of variables and save them as an html file as a
> report that can then be emailed to people.
>
> I have the following code as a start point:
>
>
> <cfset repname = "standData" & dateformat(now(),"ddmmyyyy")>
> <cfset repcontent =
> "
> <html>
> <head>
> <title>Report</title>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> </head>
>
> <body>
> <h1>blah</h1>
> yo yo yo
> </body>
> </html>">
>
> <cffile action="write"
>
> file="f:\inetpub\wwwroot\test\icaew\applications\jmuvisits\reports\#repname#
> .htm"
>
> output="#repcontent#" nameconflict="overwrite">
> But CF is complaining:
>
> Error Diagnostic Information
>
> Just in time compilation error
>
> Invalid parser construct found on line 99 at position 19. ColdFusion was
> looking at the following text:Content Invalid expression format. The usual
> cause is an error in the expression structure.
>
> I think this is because of the double quote marks that I am trying to put
> in
> to the repcontent variable as part of the HTML that I am trying to put
> together.
>
> How do i successfully put all my html for a whole report in to a variable
> to
> use in cffile?
>
> --
> Rich
> _______________________________________________
>
> For details on ALL mailing lists and for joining or leaving lists, go to
> http://list.cfdeveloper.co.uk/mailman/listinfo
>
> --
> CFDeveloper Sponsors:-
> >- Hosting provided by www.cfmxhosting.co.uk -<
> >- Forum provided by www.fusetalk.com -<
> >- DHTML Menus provided by www.APYCOM.com -<
> >- Lists hosted by www.Gradwell.com -<
> >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help
> -<
>
>
> _______________________________________________
>
> For details on ALL mailing lists and for joining or leaving lists, go to
> http://list.cfdeveloper.co.uk/mailman/listinfo
>
> --
> CFDeveloper Sponsors:-
> >- Hosting provided by www.cfmxhosting.co.uk -<
> >- Forum provided by www.fusetalk.com -<
> >- DHTML Menus provided by www.APYCOM.com -<
> >- Lists hosted by www.Gradwell.com -<
> >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help
> -<
>



--
Rich
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to