<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>CFDOCUMENTITEM</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
   <div id="説明">
   <table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
      <tr> 
         <td valign="top" class="name">CFDOCUMENTITEM</td>
         <td valign="top" nowrap class="compatibility">&nbsp;</td>
      </tr>
      <tr>
         <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
      </tr>


    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">説明</span>
<p>
cfdocument タグによって作成された PDF または FlashPaper ドキュメントに対するアクション項目を指定します。次のアクションがあります。
</p>
<ul>

<li>page break (改ページ)</li>

<li>header (ヘッダ)</li>

<li>footer (フッタ)</li>
</ul>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">カテゴリ</span>
<p>
データ出力タグ
</p>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="syntax"><span class="title">シンタックス</span><pre>&lt;cfdocument ...&gt;
シンタックス 1
&lt;cfdocumentitem type = &quot;pagebreak&quot;/&gt;

シンタックス 2
   &lt;cfdocumentitem
      type = &quot;header&quot;、&quot;footer&quot;&gt;
header/footer text
&lt;/cfdocumentitem&gt;

&lt;/cfdocument&gt;
</pre>    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">関連項目</span>
<p>
cfreport、cfdocument、cfdocumentsection
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">ヒストリ</span>
<p>
ColdFusion&#160;MX&#160;7: このタグが追加されました。
</p>

<p>

</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">使用方法</span>
<p>
cfdocumentitem タグを使用して、PDF または FlashPaper レポートの形式設定を制御します。このタグは、&lt;cfdocument&gt; &lt;/cfdocument&gt; ペアで囲む必要があります。
</p>

<p>
改ページ、ランニングヘッダ、またはランニングフッタごとに 1 つの cfdocumentitem タグをコーディングします。 
</p>

<p>
cfdocument スコープ変数、cfdocument.currentpagenumber を使用して、現在のページ番号をヘッダまたはフッタに表示することができます。cfdocument.totalpagecount を使用して、ページの総数を表示することもできます。例 :
</p>
<pre>...
&lt;cfdocumentItem type= &quot;footer&gt;
&#160;&#160;&#160;#cfdocument.currentpagenumber# of #cfdocument.totalpagecount#
&lt;/cfdocumentitem&gt;
</pre>
<p>
次に示すように、cfdocumentsection タグの有無にかかわらず、cfdocumentitem タグを使用することができます。
</p>

<p>
<b>cfdocumentsection</b> が設定されていない場合 : cfdocumentitem 属性は、次に示すようにドキュメント全体に適用されます。
</p>
<ul>

<li>このタグがキュメントの先頭にある場合、タグはドキュメント全体に適用されます。</li>

<li>このタグがドキュメントの途中にある場合、タグはドキュメントの残りの部分に適用されます。</li>

<li>このタグがドキュメントの末尾にある場合、タグの効果はありません。</li>
</ul>

<p>
<b>cfdocumentsection</b> タグが設定されている場合 : cfdocumentitem 属性はそのセクションのみに適用され、以前に指定したヘッダおよびフッタは無効になります。
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">例</span><pre>&lt;cfquery datasource=&quot;cfdocexamples&quot; name=&quot;parksQuery&quot;&gt;
SELECT parkname, suptmgr from parks
&lt;/cfquery&gt;

&lt;cfdocument format=&quot;PDF&quot;&gt;
  &lt;cfdocumentitem type=&quot;header&quot;&gt;National Parks Report&lt;/cfdocumentitem&gt;
  &lt;!--- 総ページ中の現在のページを示すフッタを使用 ---&gt;
  &lt;cfdocumentitem type=&quot;footer&quot;&gt;
    &lt;cfoutput&gt;Page #cfdocument.currentpagenumber# of #cfdocument.totalpagecount#&lt;/
cfoutput&gt;
 &lt;/cfdocumentitem&gt;

&lt;h1&gt;公園リスト&lt;/h1&gt;
&lt;table width=&quot;95%&quot; border=&quot;2&quot; cellspacing=&quot;2&quot; cellpadding=&quot;2&quot; &gt;
  &lt;tr &gt;
    &lt;th&gt;公園&lt;/th&gt;
    &lt;th&gt;Manager&lt;/th&gt;
  &lt;/tr&gt;
 &lt;cfoutput query=&quot;parksQuery&quot;&gt;
   &lt;tr&gt;
    &lt;td&gt;&lt;font size=&quot;-1&quot;&gt;#parkname#&lt;/font&gt;&lt;/td&gt;
    &lt;td&gt;&lt;font size=&quot;-1&quot;&gt;#suptmgr#&lt;/font&gt;&lt;/td&gt;
   &lt;/tr&gt;
 &lt;/cfoutput&gt;
&lt;/table&gt;
&lt;/cfdocument&gt; 
</pre>
         </td>
      </tr>
   </table>
   </div>
<div id="TYPE">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">TYPE</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">必須</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">



<p>アクションを指定します。</p><ul>

<li>pagebreak: タグの位置で新規ページを開始します。</li>

<li>header: &lt;cfdocumentitem&gt; タグと &lt;/cfdocumentitem&gt; タグの間のテキストをランニングヘッダとして使用します。</li>

<li>footer: &lt;cfdocumentitem&gt; タグと &lt;/cfdocumentitem&gt; タグの間のテキストをランニングフッタとして使用します。</li>
</ul>


  </td>
  </tr>
  </table>
</div>

  </body>
</html>
