You need to sign in to do that
Don't have an account?

Visualforce page to be generated in both PDF and MS-Excel on signgle button click
Hi,
How can I generate the VF Page in both PDF and MS Excel ?
I used renderAs="PDF" and contentType="application/vnd.ms-excel#FILENAME.xls" cache="true" on the same VF page but I am able to get only PDF but not excel format. If I remove the renderAs="PDF", then I am able to get excel file.
How can i achieve both at a time on singlr button click.
Thanks for your help in advance.
R - Manu
How can I generate the VF Page in both PDF and MS Excel ?
I used renderAs="PDF" and contentType="application/vnd.ms-excel#FILENAME.xls" cache="true" on the same VF page but I am able to get only PDF but not excel format. If I remove the renderAs="PDF", then I am able to get excel file.
How can i achieve both at a time on singlr button click.
Thanks for your help in advance.
R - Manu
You can not generate PDF & Excel on the same page, for this you required two different VF pages.
If this solves your problem, kindly mark it as the best answer.
Thnaks,
Vatsal
All Answers
You can not generate PDF & Excel on the same page, for this you required two different VF pages.
If this solves your problem, kindly mark it as the best answer.
Thnaks,
Vatsal
you can use two different VF pages