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

The print() method uses the title of the current page when printing.

You can temporarily override the title like this:

const oldTitle = document.title;
document.title = "My Scheduler";
dp.exportAs(format).print();
document.title = oldTitle;

If you need full control over the layout of the output page, I recommend exporting the Scheduler to PDF:
https://doc.daypilot.org/scheduler/client-side-pdf-export/

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