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
Surya.236Surya.236 

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.