+ Start a Discussion

Hi , i have vf page when i download it in xls format, when im trying to open it im getting error

When i try to open the file im getting this error.
im getting this  error if i try to open the file. when i gone through the path in that i got this following explanation.User-added image
how to solve this error . im new to salesforce. please help me .
Gulafsha MohammedGulafsha Mohammed
Vf page first line sample:
<apex:page controller="Report_Controller" contentType="application/vnd.ms-excel#Name.xls">

have you given like this?
If this has solved your issue please mark this as best answer.