exportToPNG

exports a Scheduler into the PNG format

void exportToPNG(object export);
exportobjectan object with export settings (see the details)

Example

scheduler.exportToPNG();
 
//or
scheduler.exportToPNG({
    name:"my_beautiful_scheduler.png"
});
 
scheduler.exportToPNG({
    format:"A4",
    orientation:"portrait",
    zoom:1,
    header:"<h1>My company</h1>",
    footer:"<h4>Bottom line</h4>",
    server:"https://myapp.com/myexport/scheduler"
});

Details

This method is defined in the export extension, so you need to include it on the page:

<script src="https://export.dhtmlx.com/scheduler/api.js"></script>

Read the details in the Export to PNG article.

The exportToPNG() method takes as a parameter an object with a number of properties (all the properties are optional):

See also
Back to top