+ Start a Discussion
pratyush_kumarpratyush_kumar 

Javascript Code appears while generating .xls file from Visualforce Page - Mac Excel Issue

Hi guys ,

I'm facing a big issue with MAC when I am exporting .xls file through visualforce page. There is some javascript code at the top along with the data on the generated .xls file. This issue is only with Mac and not with Windows. Through some other blog posts, it seems that this issue arises only in case if we are using pageBlockTable instead of dataTable. I just replaced pageBlockTable with simple datatable and problem still persists. I would really appreciate any help on this. Thanks

Best Answer chosen by Admin (Salesforce Developers) 
pratyush_kumarpratyush_kumar
Removing pageBlock from the VF Page fixes the issue :)

All Answers

pratyush_kumarpratyush_kumar
Removing pageBlock from the VF Page fixes the issue :)
This was selected as the best answer
NK@BITNK@BIT
Try this one.. it will help you...

https://nitinkhunalsalesforce.wordpress.com/2016/10/27/visualforce-export-excel-report-using-remote-action-and-alasql/