>- see footer for list info -<
RichL wrote:
>> - 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?
> 

Use single quotes in the HTML output




-- 


^/*^/*^/*^/*^/*^/*^/*^/*^/*^/*^/*^/*

 Matt Horn
 Assistant Director
 Creative Vision
 [EMAIL PROTECTED]
 www.creative-vision.co.za
 +2711 465 - 3855

^/*^/*^/*^/*^/*^/*^/*^/*^/*^/*^/*^/*
_______________________________________________

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