Hi,
Generating Gant chart is a great technical challenge, and we got several ways to do it, and generate printed sheet and export as pdf.
1) First version of displayed Gantt war a combination af html tables, each day for a given activity being a cell.
This was quite good, but requested construction of too many html nodes.
So in this format, browsers had issues to display large gantt charts.
For instance trying to display a planning for 1 year for 100 lines led to :
- Very long display time in Chrome, and then interface was very very slow
- IE was struck
- Firefox just "pop-up". Yes, not really crashed, just pop-up and disapeared without any message or error...
This version could be printed and exported to PDF, because of its "simple" structure.
2) So we brought improvements to dramatically reduce number of objects so that browsers could display large gantt charts.
We replaced each cell by background image so that to display each line less that 10 html objects are now required, whatever the number of days to display.
Now Gantt chart can be displayed for thouthand of lines over a yearly planning on all browsers.
This version was first only used to be displayed, not printed nor exported to PDF.
Simultaneously an improvement was brought on PDF export to automatically adjust witdth of planning to fit a page. This is quite good for small plannings but not for long ones as scale reduction leads to almost unreadable result.
3) We then managed to print Gantt charts in the 2nd mode, just copying parts into printable area. But this method could not be used to export to PDF.
So, up to V5.4, we got Display and Print as method 2 and export in PDF mode as method 1.
4) In V5.5, we tried to implement new PDF export method, using HTML5 Canvas, generating images, cutting them and generating PDF in Javascript.
This method uses only client side treatments, so server is not impacted.
We so implemented ways to split gantt into several pages, adapt zooming, and allow repeating of headers or not.
This is quite clean but uses some quite new technologies and external javascript libraries that are not bug free, not cross-broser compatible.
This methods works quite well in 90% of cases on Chrome, on 50% on Firefox and IE, and 0% on Edge.
So, by now, this method has only been enabled on Chrome, and is not 100% reliable, but we'll try and improve it as long as we can.
This beeing said, it explains why users can get different format for gantt export.
So we would need more precision about your print screen : Browser, version of browser, OS, version of OS, for each export, and possibly a rpint screen of the planning you try and export.
Thanks.
Hint : one workaround solution is to print the gantt on a pdf printer (for instance with PDF Creator).
Babynus
Administrator of ProjeQtOr web site