2010年12月14日火曜日

Output Word Excel Pdf

Output Word
<apex:page standardController="Account"
contenttype="application/msword">
<apex:pageBlock>
<apex:pageBlockTable
value="{!account.Contacts}" var="contact">
<apex:column
value="{!contact.Name}"/>
<apex:column
value="{!contact.Phone}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>


Output Excel
<apex:page standardController="Account"
contenttype="application/vnd.ms-excel">
<apex:pageBlock>
<apex:pageBlockTable
value="{!account.Contacts}" var="contact">
<apex:column
value="{!contact.Name}"/>
<apex:column
value="{!contact.Phone}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>


Output PDF
<apex:page standardController="Account"
renderAs="pdf">
<apex:pageBlock>
<apex:pageBlockTable
value="{!account.Contacts}" var="contact">
<apex:column
value="{!contact.Name}"/>
<apex:column
value="{!contact.Phone}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>

0 件のコメント:

コメントを投稿