Export/Print Issue in GanttChart

Discuss issues related to v5.x
User avatar
rdonahue6
Posts: 195
Joined: Wed Jul 01, 2015 10:54 pm

Export/Print Issue in GanttChart

Post by rdonahue6 » Wed Nov 14, 2018 9:54 am

Hi,

We do have around 8-10 columns and when we do print, it breaks into multiple pages. We tried with DPI =200, however, it didn't solve problem completely.
is there a way/setting to print complete GanttChart on single page ?

Attaching PDF which i export from export example, it too broken in multiple pages with single column. It works fine with DPI 200 as it has 1 column only.

Bryntum: 5.x
EXTJ: 6.x

Thanks,
Pravin More
Attachments
export-complete-7.pdf
(113.6 KiB) Downloaded 26 times

User avatar
pmiklashevich
Core Developer
Core Developer
Posts: 2372
Joined: Fri Apr 01, 2016 11:08 am

Re: Export/Print Issue in GanttChart

Post by pmiklashevich » Wed Nov 14, 2018 1:40 pm

Hello,

Have you tried "single page" option in control pagination field?
2018-11-14_1338.png
2018-11-14_1338.png (283.51 KiB) Viewed 1175 times
Pavel Miklashevich - Core Developer

User avatar
rdonahue6
Posts: 195
Joined: Wed Jul 01, 2015 10:54 pm

Re: Export/Print Issue in GanttChart

Post by rdonahue6 » Wed Nov 14, 2018 3:41 pm

Thanks pmiklashevich for quick response.

Yes, I am able to see this option for Export, which needs server side implementation.
As of now, we are interested in Print which can be managed just by adding the plugin.
However, i don't see this option for print, please refer attached screenshot.

How can i make it available for Print ?

Thanks,
Pravin More
Attachments
Single Page Print.png
Single Page Print.png (7.5 KiB) Viewed 1169 times

User avatar
pmiklashevich
Core Developer
Core Developer
Posts: 2372
Joined: Fri Apr 01, 2016 11:08 am

Re: Export/Print Issue in GanttChart

Post by pmiklashevich » Wed Nov 14, 2018 6:38 pm

Please override Gnt.plugin.Printable.buildExporters to have single exporter there.

Code: Select all

buildExporters : function () {
        return [
            'Gnt.plugin.exporter.SinglePage',
            'Gnt.plugin.exporter.MultiPage',
            'Gnt.plugin.exporter.MultiPageVertical'
        ];
    }
Pavel Miklashevich - Core Developer

User avatar
pmiklashevich
Core Developer
Core Developer
Posts: 2372
Joined: Fri Apr 01, 2016 11:08 am

Re: Export/Print Issue in GanttChart

Post by pmiklashevich » Wed Nov 14, 2018 6:54 pm

Fixed for 6.x. The fix will be a part of next nightly build and release.
Pavel Miklashevich - Core Developer

User avatar
rdonahue6
Posts: 195
Joined: Wed Jul 01, 2015 10:54 pm

Re: Export/Print Issue in GanttChart

Post by rdonahue6 » Thu Dec 06, 2018 11:49 am

Thanks pmiklashevich, it really helped us.

I observed that if structure is big(has more than 1000 tasks), for 1st print it creates view fast.
However, it is very slow(all browsers) for subsequent previews.
Please refer attached video.

is there a way to solve this problem ?


Thanks,
Pravin More
Attachments
GanttPrint_Updated1.gif
GanttPrint_Updated1.gif (4.3 MiB) Viewed 1111 times

User avatar
pmiklashevich
Core Developer
Core Developer
Posts: 2372
Joined: Fri Apr 01, 2016 11:08 am

Re: Export/Print Issue in GanttChart

Post by pmiklashevich » Thu Dec 06, 2018 1:16 pm

I've tried to add Printable plugin to the bigdataset demo (1000 tasks and 1000 dependencies), but it works pretty fast and the speed is the same. Could you please provide a runnable test case, so I can take a look?
Pavel Miklashevich - Core Developer

User avatar
rdonahue6
Posts: 195
Joined: Wed Jul 01, 2015 10:54 pm

Re: Export/Print Issue in GanttChart

Post by rdonahue6 » Wed Jul 17, 2019 1:00 pm

Hello,

It is still breaking if number of columns are more.
I am able to reproduce on advance example, attaching modified files of same example to run the use case.
Also, attaching video exported PDF for same.

If i change browser scale to 50%, it exports correctly, however, customer is accepting this suggestion.

Bryntum: 6.0.8
Sencha: 6.6.0
Browser: Chrome

Thanks,
Pravin
Attachments
Use case video.gif
Use cse video
Use case video.gif (1.82 MiB) Viewed 675 times
exported PDFs.zip
exported PDFs
(238.16 KiB) Downloaded 7 times
modified files.zip
Files modified to add Print command
(3.79 KiB) Downloaded 8 times

User avatar
pmiklashevich
Core Developer
Core Developer
Posts: 2372
Joined: Fri Apr 01, 2016 11:08 am

Re: Export/Print Issue in GanttChart

Post by pmiklashevich » Wed Jul 17, 2019 4:11 pm

Hello Pravin,

When you're are using Print plugin, it takes html page as a base and passes control to the browser, so we can do nothing to fix this. Each browser has its own printing controls and settings. And they often remember the latest configs, so once you've used 50% it most likely will be applied next time. So using Printing is possible, but if you'd like to gain more controls we recommend to use Export plugin. With the Export plugin you can generate a PDF file according to your predefined settings and then print the file out.

Best,
Pavel
Pavel Miklashevich - Core Developer

User avatar
rdonahue6
Posts: 195
Joined: Wed Jul 01, 2015 10:54 pm

Re: Export/Print Issue in GanttChart

Post by rdonahue6 » Thu Aug 01, 2019 3:11 pm

Hello,
We tried to use PDF export, it worked on windows, however, it is not working on Linux, we also tried to use PDF export example which is also not working there.

Please find attached information it has
1. Steps to configuration PDF export server
2. Exported PDF output
3. HTML input for PDF generation
4. Versions of Python and NodeJS used
5. Linux OS is CentOS.

Bryntum: 6.0.8
Sencha: 6.6.0
Attachments
LINUX_EXPORT_Error.zip
Information of environment
(47.81 KiB) Downloaded 10 times

Post Reply