2011-11-03 2 views
0

나는 doc라는 단어를 생성합니다. 그러나 마지막 페이지에서 꼬리말은 몸과 꼬리말에 표시됩니다. 아래 코드를 사용하고 있습니다.마지막 페이지에서 바닥 글이 본체에서 반복됩니다.

<apex:page standardController="opportunity" extensions="BES_Quote_DOC" contentType="application/msWord" cache="true" standardStylesheets="false"> 

<head> 
<style> 
@page {mso-footer:f1;} 
div.Section1{page:Section1;} 

p.MsoFooter, li.MsoFooter, div.MsoFooter{ 
mso-pagination:widow-orphan; 
tab-stops:center 216.0pt right 432.0pt;} 

</style> 
</head> 

<body> 
<div class="Section1"> 
    <apex:form id="hidDiv"> 
    <table> 
    <tr> 
     <td>abcd</td> 
     <td>efgh</td> 
    </tr> 
    <tr> 
     <td>ijkl</td> 
     <td>mnop</td> 
    </tr> 
    <tr> 
     <td>qrst</td> 
     <td>uvwx</td> 
    </tr> 
    </table> 
    </apex:form> 


    <div style="mso-element:footer" id="f1"> 
     <p class='MsoFooter' align="left" style="font-size: 10px">this is footer</p> 
    </div> 
</div> 
    </body> 

</apex:page> 

본문에 꼬리말을 쓰지 마십시오. 내가 어떻게해야하지?

감사합니다.

답변

1

이 코드를 가져 와서 파일에 직접 삽입 한 것 같습니다. 머리글과 바닥 글은 별도의 파일에 배치해야합니다. 이 링크를 통해 머리글과 바닥 글을 배치하는 방법에 대해 더 많이 이해할 수있었습니다. [http://sebsauvage.net/wiki/doku.php?id=word_document_generation][1]