ablajoie
11/15/2016 - 4:00 PM

Visualforce CSV Attachment

    <messaging:attachment filename="closing_conditions.csv" >
        <apex:repeat var="cx" value="{!relatedTo.Pre_Closing_Conditions__r}">
            {!cx.Name}, {!cx.Closing_Condition__c}, {!cx.Type__c}, {!cx.Comments__c}
        </apex:repeat>
    </messaging:attachment>