You need to sign in to do that
Don't have an account?
Visualforce page to export into excel ".xlsx" extension
Hi is there anyway to export into excel ".xlsx" extension using visualforce page.
I am using contentType = "application/vnd.ms-excel#MyFile.xlsx" but gives en error while opening a file.
Excel cannot open the file 'MyFile.xlsx' becuase the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file.
Please suggest me on this.
Thanks,
Try using
There is a typo in the first post.
Still not working for me!
I have used the contentType = "application/vnd.ms-excel. but page only downloaded not display to Vf page.
Thank's..............
We also have same requirement were we are able to export to ".xls" format using contentType="application/vnd.ms-excel" but not in ".xlsx".
I am successfully able to generate the .xls format but can not able to generate the .xlsx file.