'export a chart as excel or pdf in oracle apex

I have a region with type 'chart' and this region get data with a query from database and show as area chart want to have a button that when click on it , the chart data downloaded as pdf or excel

I tried to use report queries but I cant have a print server



Solution 1:[1]

A simple option (doesn't require anything additional) is to

  • create a button (its label is e.g. "Print")

  • create a dynamic action which fires when the button is pressed

  • dynamic action executes JavaScript code, this:

     window.print()
    
  • run the page, push the "Print" button

This is the result:

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Littlefoot