Skip to main content

exportToPNG

Description

Exports a Scheduler into the PNG format

exportToPNG: (export?: any) => void

Parameters

  • export - (optional) object - an 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

note

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):

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.