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

Screen Resolutions and exportAs()

Asked by John
3 years ago.

I’m noticing that when exporting for print, depending on the screen resolution, the exported image looks differently when putting it in a .pdf. Do you have any examples that keep it consistent across screen resolutions?

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

The Calendar and Month components now support options.width parameter that will let you override the dynamic width calculated from the current view. It's available since build 2019.1.3595 (see the sandbox at


dp.exportAs("svg", {width: 500}).download();

The Scheduler component lets you specify the width indirectly using dateFrom and dateTo options (area: "range").

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