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
Raghavendra ARaghavendra A 

VF- Apex Page to Excel help

Hi All,

We are trying to generate a table of data and report out the data in a Visualforce page. We also need to export the results into an Excel sheet. The challenge we are facing is that:
  • How do we bring the chart data into the Excel that gets generated?
  • If we cannot bring the Chart, can we bring store a Excel template that already has chart designed? So that we can pump the data to excel and based on the data the chart would be generated.
  • If both of the above options does not work, Can we generate a PDF out of the VF page(including chart) ?
Any ideas would be highly appreciated.

Visualforce charts are rendered using JavaScript, not server-side image rendering. Therefore, they will not appear in Excel, PDF, word, plain text, or any other format that doesn't recognize JavaScript.