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
karthikeya 2karthikeya 2 

convert to pdf and excel when button click?

Hi
Can any one give the code for converting the vf page to padf and Excel when the commend button is clicked and to download also.
can any one please provide fo me i am trying very hard but i am unabl to do please help me...
sandeep sankhlasandeep sankhla
Hi Karthik,

You can use renderAs attribut of page to make it render as pdf and word...

Please refer the below link and let me know if you are able to download these as PDF and word...

https://developer.salesforce.com/forums/ForumsMain?id=906F0000000Ai0XIAS
P.S. If my answer helps you to solve your problem please mark it as best answer. It will help other to find best answer.

Thanks,
Sandeep
Salesforce Certified Developer 
 
RishavRishav
Hi ,
chick out this link may it will help u  
https://mindfiresfdcprofessionals.wordpress.com/2013/10/09/visualforce-page-that-renders-as-pdf-when-a-button-is-pushedclicked/

i am giving u only half solution but it's very good.  Next u can do.

Hope it helps u 

Thanks
Rishav
beco fuanbeco fuan
For converting to pdf, you can refer to A (http://www.rasteredge.com/how-to/csharp-imaging/pdf-converting/), and for converting to Excel, you can get guide from B (http://http://www.rasteredge.com/how-to/csharp-imaging/excel-converting/).
Hope this will be helpful.