i am facing one issue . we have a requirement like attach the work object details in mail. and based on work object details need to create word document and send it in email attachment.
i am able to create word and attach it in mail. but after downloading i try to open it i am getting some error " We are sorry . We can' t open the file because we found a problem with its contents" unable to open the word document.
The file type is .docx and one thing is .doc file type is working fine able to open after downloading.
the issue is with .docx and .pdf file types.
please suggest me how to resolve this.
please find the attached screen shot for your reference.