Page 1 of 1

[REACT] using viewPreset leeds to not exporting timeline when using custom date range in exporter

Posted: Thu Jun 08, 2023 1:07 am
by burnit

Hi,

attached you can find a demo of this issue.
Please install latest version with 5.3.6.
Click on the export button, select date range and start export.
Only the columns will be exported.

If you select visible schedule, everything works fine.
With date range or complete schedule it is also working if you remove viewPreset from schedulerConfig.
If not, you get an empty page or just the columns.

Pls confirm the issue.

Many thanks,
André


Re: [REACT] using viewPreset leeds to not exporting timeline when using custom date range in exporter

Posted: Mon Jun 12, 2023 10:57 am
by joakim.l

Hi

I think the issue here is that the time axis is too long. If I export the Complete scheduler I get this:

export1.png
export1.png (10.25 KiB) Viewed 248 times

This screenshot is taken at a high zoom level in the exported PDF document.

If you activate Multiple pages in the Export dialog, the resulted PDF will look much better:

export-settings.png
export-settings.png (26.13 KiB) Viewed 248 times

Re: [REACT] using viewPreset leeds to not exporting timeline when using custom date range in exporter

Posted: Mon Jun 12, 2023 11:27 am
by burnit

Hi Joakim,
I don't understand. When i select date range as schedule range and enter a 5 day range, the time axis can not be too long. Why is the export empty?

But remember you have to use viewPreset in your schedulerConfig to get the issue.

Please try.

Greetings,
Andre


Re: [REACT] using viewPreset leeds to not exporting timeline when using custom date range in exporter

Posted: Mon Jun 12, 2023 12:04 pm
by joakim.l

I'm using your example code when trying this out.

My exported PDF:s are not empty, just so small so the're barely noticable.
I have a attached a bunch of PDF:s generated from your example.

So. If you get the same results as I do, the issue is that your exporting the complete schedule as a single page with a very low "resolution" on the schedule. I suggest you should either:

  • Export to multiple pages
  • or, limit the date range to something that fits on one page
  • or, "zoom out" to a viewPreset that does not show hours

Re: [REACT] using viewPreset leeds to not exporting timeline when using custom date range in exporter

Posted: Mon Jun 12, 2023 1:25 pm
by burnit

HI Joakim,

many thanks. I have to check my code.

André