Timescale in scheduler print is not working

 Hello team, 

I have tried angular scheduler    print    option in timeline day view with custom timescales options and its not working.

here is the stackblitz url 

https://stackblitz.com/edit/angular-barxcc?file=src%2Fapp.component.ts,src%2Fapp.component.html

attached the screenshots showing one hour interval and 2 slots , insted of 4 hour interval and 4 slots 

scheduler issue.png


1 Reply

AK Ashokkumar Karuppasamy Syncfusion Team December 26, 2023 01:14 PM UTC

Hi Prateek,


We have prepared a schedule print sample with a custom timescale. The attached code snippet and the sample below demonstrate the solution. Please give it a try, and let us know if you need any further assistance.

Sample: https://stackblitz.com/edit/angular-timescale-vfre7n?file=src%2Fapp.component.ts,src%2Fapp.component.html

[app.component.ts]

public timeScaleTimeScaleModel =  { enable: trueinterval: 60slotCount: 4majorSlotTemplate: nullminorSlotTemplate: null };

 

  public onPrintClick(): void {

    

      const printOptionsScheduleModel = {

        views: [

          {

            option: this.scheduleObj.currentView,

            timeScale: this.timeScale,

          },

        ],

      

      };

      this.scheduleObj.print(printOptions);

  

  }

 


Regards,
Ashok


Loader.
Up arrow icon