I am trying to make a print option for a DayPilot Scheduler, using Typescript language.
This is my code:
var image = this.$scope.dps.scheduler.exportAs("png", {
area: "range",
dateFrom: this.formatDate(fromDate),
dateTo: this.formatDate(toDate),
quality: 0.1
}).print();
Downloading the image worked fine (see attached image). The download code is practically identical:
var image = this.$scope.dps.scheduler.exportAs("png", {
area: "range",
dateFrom: this.formatDate(fromDate),
dateTo: this.formatDate(toDate),
quality: 0.1
}).download();
The print option produces a blank page, regardless of date ranges input.
How do I get a proper print?