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
Anil MeghnathiAnil Meghnathi 

While taking Page as Excel ,it is not supported as attachment in email.

i have a class , which  send an email with attachment.

The attachment is content of a visualforce page.

I have set the contentType as Excel of visualforce page.

The mail is send successfully.But the content of attachment doesnt support excel file type.

So when i try to open excel file the error of not support is coming.

Instead of data the code of the visualforce page and Apex class is displayed in excel file

Any idea how to solve it.

 

Thanks

 

Anil