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

How to print day and week in scheduler?

Asked by pushplata
2 years ago.

Hi,

I have to print day and week .
Please guide me how to do it.

Thanks in advance

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

The Scheduler can print (or export as image) the current view or a section of it using the exportAs() method.

For more details and an example, please see the documentation:
https://doc.daypilot.org/scheduler/printing/

See also:
https://api.daypilot.org/daypilot-scheduler-exportas/

Comment posted by Anonymous
2 years ago.

How to print for particular day ?

Comment posted by Dan Letecky [DayPilot]
2 years ago.

The following tutorial explains how to export a selected date range in the Scheduler component:

https://code.daypilot.org/73551/html5-scheduler-pdf-export-javascript

It uses area: "range" option to limit the exported dates. You can use similar config it to export a single day:

dp.exportAs("jpeg", {
  area: "range",
  dateFrom: "2022-01-01",
  dateTo: "2022-01-02",
}).print();
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.