Our state of the art Gantt chart


Post by mats »

Today we're happy to announce the PDF Export feature as part of the new 2.0 release. You can try the PDF export example here: https://bryntum.com/products/gantt/examples/export/

Download the full release from customer zone: https://customerzone.bryntum.com/


Post by jim@jimclark.net.au »

Hi

Am running bryntum-gantt-2.0.0\gantt-2.0.0\examples\vue\javascript\pdf-export
and D:\Bryntum\bryntum-gantt-2.0.0\gantt-2.0.0\examples\_shared\server
It works fine but it can hang on successive exports under certain conditions.

1/ you need to setup the default view of your browser so that when it first opens the pdf-export the gantt fits on screen with no horizontal scrolling. This is essential. Do not maximize or resize your browser as this will effect the test. It must open with not horizontal scroll by default.
2/ Click export (just accept defaults)
- works fine and generates PDf as expected.
3/ Click export again
- Hangs and not generating any export regardless of how long I wait. The browser (chrome) is locked and cannot get to Dev tools to get any info).

Post by Maxim Gorkovsky »

Hello.
I'm trying to reproduce the problem on chrome 79 with the 2.0.0 release from customer zone and I am not able. Please provide additional info:
1. which os are you using?
2. which chrome version are you using?
3. is there a touch screen on your system?
4. are you trying release from customer zone or trial one?
5. is there any scaling enabled on the OS or browser level?
6. could you provide exact window size for me to try?

Post by jim@jimclark.net.au »

Have a look at this video and answer to your questions are below..
https://www.jimclark.net.au/videos/GanttHangsOnSecondExport.mp4

1. which os are you using?
Windows 10 Pro.
2. which chrome version are you using?
Version 79.0.3945.88 (Official Build) (64-bit)
3. is there a touch screen on your system?
No
4. are you trying release from customer zone or trial one?
Customer Zone v 2.0
5. is there any scaling enabled on the OS or browser level?
No, at 100% by default.
6. could you provide exact window size for me to try?
Aprox. Width 2645, Height 1200

Post by jim@jimclark.net.au »

only thing I did change was to npm uninstall node-sass and npm install node-sass in the pdf-export example so that it would build using node 12.14.0. Prior to that it would only build with node 10 and wanted to get it to build with same version of node for both server and pdf-export

Post by Maxim Gorkovsky »

Reproduced, ticket opened here: https://github.com/bryntum/support/issues/162
Thank you for report.

Likely that happens because gantt state is not restored properly. You see that first rows are missing after export. As a temporary workaround I could recommend to scroll view vertically to force rows to update:
 gantt.scrollVerticallyTo(1) 

Post by jim@jimclark.net.au »

This is suggestion/request.
Under the vue examples for gantt-2.0 there is advanced and pdf-export. Would be great if the pdf-export was simply identical to the advanced example except it had the export plugged in. This would make it very easy to see how the pdf export can be used just by comparing the 2 projects (ie. same project 1 with export and 1 without). Any chance?
Thanks Jim

Post Reply