function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jag-tcfjag-tcf 

field error in email pdf attachment

HI There,

 

I have created an visual force page to send as a pdf through the email button. the thing is when click the email report button its sending the attchment but cant open it saying corrupted. After searching every line of the code i found the problem. there is a field called Date_Of_Instruction(date field). if i take this field out of code it displaying the pdf. i dont understand whats the problem is?.

 

can anyone help me regarding this issue.

 

thanks in advance.

 

<td bgcolor="#dddddd">Date Of Instruction</td>
            <td><apex:outputfield value="{!Opportunity.Date_Of_Instruction__c}" />
            </td>

Devendra@SFDCDevendra@SFDC
Hi,

Have you checked the field level security for Date_Of_Instruction__c?

Please check the same.

Thanks,
Devendra
jag-tcfjag-tcf

thanks for your response mate. yes i checked field level security that was fine. i dont understand whats rong with this.