2015-01-26 2 views
2

가 없습니다 :cfdocument와 문제 cfdocument와 내가 Coldfusion10 함께 일하고이 오류에 직면하고 시체

The following information is meant for the website developer for debugging purposes. 
Error Occurred While Processing Request 
cfdocument tag has no body. 
It must have a body or a source file or URL. 

나는 웹 사이트를 확인하고 cfsettings이 문제를 일으킬 수있는 어느 곳에서나 상단 또는 정의되지 않은 것을 발견, 나는 여전히 evalAtPrint= true하지만 성공을 사용하여 시도

<cfdocument format="pdf"> 
<cfdocumentsection> 
<cfdocumentitem type="header"></cfdocumentitem> - Footer is used too 
</cfdocumentsection> 

로 사용하고 있습니다. 내가 여기서 뭔가를 놓치고 있니?

답변

1

실제로 마지막에 넣었는지 확인하십시오. 나는 당신이 방금 이것을 여기에서 놓쳤다라고 생각하고있다.

그렇지 않으면 모든 것이 Wiki Docs과 일치하는 것 같습니다.

두 가지를 제안합니다.

  1. ColdFusion 11 업데이트 3을 사용 중인지 확인하십시오. 업데이트 3은 주요 업데이트로이 문제를 해결했을 수 있습니다.
  2. 업데이트 3 사용하는 경우, 당신은 귀하의 질문에 포함 된 오류 메시지가 <cfdocument> 태그 사이에 내용이 없음을 나타냅니다 bugbase.adobe.com
0

에서 버그를 엽니 다. 포함 된 코드가이를 뒷받침합니다. 이것이 실제 코드가 아니라면 우리는별로 도움이되지 않습니다.

<cfdocument> 태그 사이에 PDF로 변환하려는 내용을 포함시켜야합니다.

<cfquery datasource="cfdocexamples" name="empSalary"> 
    SELECT Emp_ID, firstname, lastname, e.dept_id, salary, d.dept_name 
    FROM employee e, departmt d 
    WHERE e.dept_id = d.dept_id 
    ORDER BY d.dept_name 
</cfquery> 

<cfdocument format="PDF"> 
    <cfoutput query="empSalary" group="dept_id"> 
     <cfdocumentsection> 
      <cfdocumentitem type="header"> 
       <font size="-3"><i>Salary Report</i></font> 
      </cfdocumentitem> 
      <cfdocumentitem type="footer"> 
       <font size="-3">Page #cfdocument.currentpagenumber#</font> 
      </cfdocumentitem>   
      <h2>#dept_name#</h2> 
      <table width="95%" border="2" cellspacing="2" cellpadding="2" > 
      <tr> 
       <th>Employee</th> 
       <th>Salary</th> 
      </tr> 
      <cfset deptTotal = 0 > 
      <!--- inner cfoutput ---> 
      <cfoutput> 
       <tr> 
       <td> 
        <font size="-1">#empSalary.lastname#, #empSalary.firstname#</font> 
       </td> 
       <td align="right"> 
        <font size="-1">#DollarFormat(empSalary.salary)#</font> 
       </td> 
       </tr> 
       <cfset deptTotal = deptTotal + empSalary.salary> 
      </cfoutput> 
      <tr> 
       <td align="right"><font size="-1">Total</font></td> 
       <td align="right"><font size="-1">#DollarFormat(deptTotal)#</font></td> 
      </tr> 
      <cfset deptTotal = 0> 
      </table> 
     </cfdocumentsection> 
    </cfoutput> 
</cfdocument> 

Copied from the ColdFusion documentation here

:이 같은 뭔가가 필요
관련 문제