You need to sign in to do that
Don't have an account?
johnc82
Remove Decimal in Visualforce PDF
I have a visualforce page that I'm rendering as PDF. I have the field set to no decimal and when viewing the actual visualforce page, there is no decimal, but when I view the page I have in PDF format, there is a decimal. Anyone know how to remove it? Below is a line of one of the fields.
<td width="10%" align="center">{!abc.Additional_Eq21__c}</td>
Here you go:
<td width="10%" align="center">
<apex:outputText value="{0,number,###,###,##0}">
<apex:param value="{!abc.Additional_Eq21__c}"/>
</apex:outputText>
</td>
Just for your information, if you need to add /- after the amount, you can make use of outputText format to do the same:
<apex:outputText value="{0,number,###,###,##0.00/-}"> - will show as - 1234500.00/-
Thanks for you code, I really like!