Automating Scheduler PDF Export

1 Answer 95 Views
Scheduler
Kevin
Top achievements
Rank 1
Kevin asked on 16 Feb 2023, 05:50 PM

We have a page which loads a Scheduler, and we pass various information to define what data is loaded in.  That all works fine, and we can click PDF Export and it exports absolutely as we'd expect.

We make fairly heavy use of the templates, so we could end up with something that looks like this:

There are about 200 different schedules that we might show depending on the data, and what we'd like to do is be able to automate the export.

We could write a script that loads the page and simulates a button click, however, if there is some better way, I'd MUCH rather do that so we're not dependent on waiting for the page to display on some computer somewhere.

I can pass the parameters needed in the URL - but not sure if there is some way on the page I can automate that PDF Export without first displaying the scheduler page.

Any help would be greatly appreciated!

Thanks

 

 

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 21 Feb 2023, 10:59 AM

Hello Kevin,

In order to export the Scheduler the PDF, the component and its data should be rendered first. Thus, I am afraid you can not export the component before its data is loaded. 

You can either click the export button programmatically or you can use the saveAsPdf method:

- https://docs.telerik.com/kendo-ui/api/javascript/ui/scheduler/methods/saveaspdf

I hope this helps.

Regards,
Neli
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Scheduler
Asked by
Kevin
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or