I followed the tutorial to create a print button that calls the file png.aspx which has all the configuration to export the scheduler to PNG.
The solution works fine as long a I don't select too much data for the scheduler control, I'm trying to print around 3700 items and the error appears to be on the MemoryStream (see error on the screenshot I'm attaching)
I know that in order to load several items on the calendar I need to use the Progressive rendering which I already did, here are the the settings that I used but I'm still unable to make it my code works, I'm also including the code behind file of my png page
DayPilotScheduler1.DynamicEventRendering = EventRendering.Progressive;
DayPilotScheduler1.DynamicEventRenderingCacheSize = 200;
DayPilotScheduler1.DynamicEventRenderingCacheSweeping = false;
DayPilotScheduler1.DynamicEventRenderingMargin = 50;
DayPilotScheduler1.DynamicLoading = false;