I think I understand the question.
I shouldn't have used #MYHTMLCONTENT#
Do this:
<CFFILE Action="Append"
File="d:\http\pb-solutions_com\travs\test1.html"
output="<TABLE border=1
cellpadding=0
cellspacing=0>">
<CFOUTPUT query="MyQuery">
<CFFILE Action="Append"
File="d:\http\mydir\temp.html"
output="<TR> <td> #QUeryData#, #QueryData2#</td> </tr>"
>
</CFOUTPUT>
<CFFILE Action="Append"
File="d:\http\pb-solutions_com\travs\test1.html"
output="</Table>">
That will do a simple table with your Query Data. It's a little anoying but it works.
Just be careful of quotes inside the output =" " string, change them to ' .
The idea is to put the <CFFILE action="Append" ...> Wherever you would have put the formatting for the data that you would have put on the screen. Put the formatting and data instead into the output = " ..." string.
This works for me. I hope I got the right question this time.