Thank you for your reply.
Now I'm getting this error. I used this in my some component. There I'm not getting any errors.
TypeError: Cannot read properties of undefined (reading 'find')
at n (daypilot-core.js:29)
at Array.forEach (<anonymous>)
at Object.k.generate (daypilot-core.js:29)
at DayPilot.Scheduler.exportAs (daypilot-core.js:28)
at RosterComponent.push../src/app/scheduler/roster/roster.component.ts.RosterComponent.print (roster.component.ts:80)
at Object.eval [as handleEvent] (RosterComponent.html:68)
at handleEvent (core.js:23107)
at callWithDebugContext (core.js:24177)
at Object.debugHandleEvent [as handleEvent] (core.js:23904)
at dispatchEvent (core.js:20556)
It shows an error in the code.
this.scheduler.control.exportAs("svg").print();