search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

How To Print Scheduler With Angular 4+

Asked by Hoang Nguyen
5 years ago.

How do I print my DayPilot Scheduler with Angular 4+. Thank you very much

Answer posted by Dan Letecky [DayPilot]
5 years ago.

There are two options:

1. You can print the exported image (SVG format works best because it's scalable). This command exports the Scheduler as SVG and open the browser print image:

this.scheduler.control.exportAs("svg").print();

See also:
https://doc.daypilot.org/scheduler/printing/

2. If you need more control over the result, you can export the Scheduler to PDF. This will let you add custom header/footer, split the export into several pages, control the page orientation, etc. However, it doesn't open the print dialog automatically.

See the following tutorials:
https://code.daypilot.org/73551/html5-scheduler-pdf-export-javascript
https://code.daypilot.org/76551/html5-scheduler-paged-pdf-export

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.