Hi all,

I've searched and my google-foo is failing me today.  I have a very simple page 
that generates a pdf file. When called directly it works just fine, however if 
the file is included through a cfinclude then the error: "cfdocument tag has no 
body. It must have a body or a source file or URL." comes up every time.

The code for the page is:
<cfsetting showdebugoutput="false" enablecfoutputonly="false">
<cfdocument
                format="PDF"
                filename="c:\testpdf.pdf"
                overwrite="yes">
<p>Test</p>
</cfdocument>

This is part of a system where the user requests a report and what formats that 
the report should be in. That is why I am doing it with a cfinclude. If the 
user chose PDF then it makes it. It is just stumping me as to why it works one 
way, but not the other.

Any insights will be really appreciated.

Steve


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348406
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to