¿¹Á¦´Â onlayoutcomplete À̺¥Æ®Ã³¸®ÀÚ¸¦ Æ÷ÇÔÇÑ ±âº»ÀûÀÎ Àμ⠹̸®º¸±â¸¦ ¼³¸íÇÑ ¿¹Á¦À̸ç Àμâ´Â µÇÁö ¾Ê´Â´Ù. Àμ⸦ À§ÇÑ ¼³Á¤Àº TemplatePrinter¸¦ ÂüÁ¶Ç϶ó. ¿©±â¼­ LAYOUTRECT¿¡¼­ nextRect ¼Ó¼ºÀ¸·Î ´ÙÀ½ »ý¼ºµÇ´Â LAYOUTRECTÀ» id·Î ÁöÁ¤ÇÏ°í »ý¼ºÇÏ¿´´Ù.

<HTML xmlns:IE>
<HEAD>
<IMPORT namespace="IE" implementation="#default">
<SCRIPT>
index=1;
function OnRectComplete(){
  if (event.contentOverflow==true){
    document.all('LRect'+index).onlayoutcomplete=null;
    newHTML='<IE:DEVICERECT id="page'+(index+1)+'" media="print" class="pagestyle">';
    newHTML+='<IE:LAYOUTRECT id="LRect'+(index+1)+'" onlayoutcomplete="OnRectComplete()" ';
    newHTML+='nextRect="LRect'+(index+2)+'" class="layoutstyle"/>';
    newHTML+='</IE:DEVICERECT>';
    pagecontainer.insertAdjacentHTML('beforeEnd',newHTML);
    index++;
  }
}
</SCRIPT>
<STYLE type='text/css'>
.layoutstyle{ border:1 solid red;margin:10;width:700;height:60em;}
.pagestyle  { border:1 solid blue;margin:5;width:700;height:60em;}
</STYLE>
</HEAD>
<BODY>
<DIV id="pagecontainer">
<IE:DEVICERECT id="page1" media="print" class="pagestyle">
<IE:LAYOUTRECT id="LRect1" contentsrc="../../object/jsList.html"
  onlayoutcomplete="OnRectComplete()" nextRect="LRect2" class="layoutstyle"/>
</IE:DEVICERECT>
</DIV>
</BODY>