<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>CFDOCUMENTSECTION</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">CFDOCUMENTSECTION</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>
PDF または FlashPaper 形式のドキュメントをセクションに分割します。このタグを 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>
<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;

   &lt;cfdocumentsection
      margintop = &quot;number&quot;
      marginbottom = &quot;number&quot;
      marginleft = &quot;number&quot;
      marginright = &quot;number&quot;&gt;

   HTML タグ、CFML タグ、および cfdocumentitem タグ
&lt;/cfdocumentsection&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、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>
<p>
ColdFusion&#160;MX&#160;7: このタグおよび margintop、marginbottom、marginleft、marginright の各属性が追加されました。
</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>
cfdocumentsection タグを使用して、レポートをセクションに分割します。それぞれの cfdocumentsection タグ内で、1 つ以上の cfdocumentitem タグを使用して、各セクションに固有のヘッダおよびフッタを指定することができます。
</p>

<p>
cfdocumentsection を使用する場合、ColdFusion MX は cfdocumentsection タグの外にある HTML と CFML を無視します。
</p>

<p>
以前のセクションまたは親である cfdocument タグで指定されていたマージンは、マージンに関する属性により無効になります。マージンに関する属性を指定する場合、その単位は cfdocument 親タグの unit 属性で制御されます。unit 属性のデフォルトの単位はインチです。
</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;empSalary&quot;&gt;
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
&lt;/cfquery&gt;

&lt;cfdocument format=&quot;PDF&quot;&gt;
  &lt;cfoutput query=&quot;empSalary&quot; group=&quot;dept_id&quot;&gt;
   &lt;cfdocumentsection&gt;
   &lt;cfdocumentitem type=&quot;header&quot;&gt;
      &lt;font size=&quot;-3&quot;&gt;&lt;i&gt;給与レポート&lt;/i&gt;&lt;/font&gt;
   &lt;/cfdocumentitem&gt;
   &lt;cfdocumentitem type=&quot;footer&quot;&gt;
      &lt;font size=&quot;-3&quot;&gt;Page #cfdocument.currentpagenumber#&lt;/font&gt;
   &lt;/cfdocumentitem&gt;      
   &lt;h2&gt;#dept_name#&lt;/h2&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;給与&lt;/th&gt;
     &lt;/tr&gt;
     &lt;cfset deptTotal = 0 &gt;
     &lt;!--- 内側の cfoutput ---&gt;
     &lt;cfoutput&gt;
       &lt;tr&gt;
          &lt;td&gt;&lt;font size = &quot;-1&quot;&gt;
          #empSalary.lastname#, #empSalary.firstname#&lt;/font&gt;
        &lt;/td&gt;
        &lt;td align=&quot;right&quot;&gt;&lt;font size=&quot;-1&quot;&gt;
          #DollarFormat(empSalary.salary)#&lt;/font&gt;
        &lt;/td&gt;
         &lt;/tr&gt;
       &lt;cfset deptTotal = deptTotal + empSalary.salary&gt;         
     &lt;/cfoutput&gt;
      &lt;tr&gt;
          &lt;td align=&quot;right&quot;&gt;&lt;font size=&quot;-1&quot;&gt;Total&lt;/font&gt;&lt;/td&gt;
        &lt;td align=&quot;right&quot;&gt;&lt;font size=&quot;-1&quot;&gt;#DollarFormat(deptTotal)#&lt;/font&gt;&lt;/td&gt;
        &lt;/tr&gt;
      &lt;cfset deptTotal = 0&gt;
      &lt;/table&gt;
     &lt;/cfdocumentsection&gt;
   &lt;/cfoutput&gt;
&lt;/cfdocument&gt; 
</pre>
         </td>
      </tr>
   </table>
   </div>
<div id="MARGINTOP">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">MARGINTOP</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>ページの上マージンをインチ (デフォルト) またはセンチメートルを単位として指定します。上マージンをセンチメートル単位で指定するには、unit=&quot;cm&quot; 属性を cfdocument 親タグに含めます。</p>

  </td>
  </tr>
  </table>
</div>
<div id="MARGINBOTTOM">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">MARGINBOTTOM</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>ページの下マージンをインチ (デフォルト) またはセンチメートルを単位として指定します。下マージンをセンチメートル単位で指定するには、unit=&quot;cm&quot; 属性を cfdocument 親タグに含めます。</p>

  </td>
  </tr>
  </table>
</div>
<div id="MARGINLEFT">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">MARGINLEFT</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>ページの左マージンをインチ (デフォルト) またはセンチメートルを単位として指定します。左マージンをセンチメートル単位で指定するには、unit=&quot;cm&quot; 属性を cfdocument 親タグに含めます。</p>

  </td>
  </tr>
  </table>
</div>
<div id="MARGINRIGHT">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">MARGINRIGHT</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>ページの右マージンをインチ (デフォルト) またはセンチメートルを単位として指定します。右マージンをセンチメートル単位で指定するには、unit=&quot;cm&quot; 属性を cfdocument 親タグに含めます。</p>

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

  </body>
</html>
