Print Schedule with landscape and on single page

Hi support,

the api documentation does not show the parameters for the print method.

Is it possible the set the printer output to landscape? This would fit better to a "normal" week schedule.

Is it also possible to set an automatic scale, so that the data fits on a single page?

Regards,

Stephan


3 Replies

NR Nevitha Ravi Syncfusion Team November 15, 2021 02:03 PM UTC

Hi Stephan, 

Greetings from Syncfusion support. 

You can pass ScheduleModel type as parameters to print method. Please refer to the following demo and UG. 

To print the week view in landscape (horizontal mode), you can set current view as timeline week in printOptions and pass it as parameter to your print method. You can either set width and height to the scheduler in print options to adjust the size of the scheduler while printing or set custom scaling option in general print settings as below. 

 

Please try the above solutions and let us know if this meets your requirement. 

Regards, 
Nevitha 



SS Stephan Schrade November 17, 2021 02:06 PM UTC

Hi support,

ok, but this is not what I need.

I want to have the schedule fitted to a single page in landscape mode, rather than setting a zoom factor in the printer driver. Because then, the width is also scaled.

Regards,

Stephan



SK Satheesh Kumar Balasubramanian Syncfusion Team November 18, 2021 01:00 PM UTC

Hi Stephan, 
  
Thanks for your update. 
  
We have validated your reported query "I want to have the schedule fitted to a single page in landscape mode, rather than setting a zoom factor in the printer driver." and suggest you to adjust the height & width in print options to achieve your requirement. 
  
  
index.ts:    
function onPrintIconClick(): void { 
  let printModel: ScheduleModel = { 
    height: '740px', 
    width: '940px', 
  }; 
  scheduleObj.print(printModel); 
} 
  
Kindly try the above code and let us know if this works at your end. If you still face any problem, please share the below details to reproduce the issue which will help us to validate the issue and provide prompt solution as soon as possible. 
  • Replicate the issue in above sample or share issue replicating sample if possible
  • Share issue depicting image(or)video
  • Scheduler view you try to print

Regards, 
Satheesh Kumar B 


Loader.
Up arrow icon