Our pure JavaScript Scheduler component


Post by oriswid »

Hello.

I'm trying to implement an export to pdf using the export method in the Scheduler component.

I specific case the export just stop during the creation of the HTML strings and does not throw any error.
There is no call to the PDF server so I know for certain that the problem is not on that end.

export in other conditions seems to work fine.

basic configuration:

{
  exporterType: 'multipage',
  fileName: 'Plataine-scheduler',
  fileFormat: 'pdf',
  orientation: 'landscape',
  scheduleRange: 'currentview',
  repeatHeader: true,
  sendAsBinary: true,
  }

specific parameters sent to the export function:

{
rangeEnd: Sun Jun 18 2023 03:00:00 GMT+0300 (Israel Daylight Time) {}
rangeStart: Sun Jun 04 2023 03:00:00 GMT+0300 (Israel Daylight Time) {}
rows:[]
scheduleRange: "daterange"
}

The zoom level of the scheduler is set to 0.

The bug repeats itself inconsistently. I had to test it multiple times.


Post by alex.l »

Hi,

We need more details to reproduce this. Maybe runnable test case or your data JSON. I tried it here https://bryntum.com/products/scheduler/examples/export/
with the code you provided. In console

scheduler.features.pdfExport.export({
  exporterType: 'multipage',
  fileName: 'Plataine-scheduler',
  fileFormat: 'pdf',
  orientation: 'landscape',
  scheduleRange: 'currentview',
  repeatHeader: true,
  sendAsBinary: true,
  })

many times and it is always working as expected. Please try yourself. Check your code, try to apply minimal changes to our demo to make it reproducible. Maybe the problem in some specific data, custom viewPreset or something else. Hard to say before we reproduced this.

All the best,
Alex


Post Reply