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
Raju Sudheer 3Raju Sudheer 3 

how we can generate reports from apex class and visual force page

NagaNaga (Salesforce Developers) 
Hi Raju,

For the moment, the answer of this question, is no. You can't develop or create Reports through the API. 

However you can manage to visualize them by querying the system. 

In creating reports, you should rely on the standard User Intereface, that Salesforce provides. Set the right permissions and user rights for your user profiles, and you will make sure that they can generate reports, related, only to the data that they can SEE.

Please let me know if this helps

Best Regards
Naga kiran