+ Start a Discussion
Mani deepuMani deepu 

send chart as an excel format in lightning component?

Hi All,

I have displayed chart in lightning component using <canvas>
Now i want to send that chart as an attachment in email when click on ''send Email" button.Can you Please anyone help me with how to send as an excel format in the lightning component.

Thanks 
sai sekhar 1sai sekhar 1
You have to call this component in a lightning all and call the lightning app in a vf page and use contentType="application/vnd.ms-excel#SalesForceExport.xls"  in vf page. Give it a try.