I have a client with app that utilizes the built-in gantt chart block in appfarm. This app is designed to help with project planning for construction projects and one feature that they desired was the ability to print out the gantt chart from appfarm such that it could be used at the site in a printed form. I have not been able to find any easily accessible built-in way to do this, but was wondering if someone has had a similar challenge and perhaps come up with an elegant solution to this?![]()
Hi Emil,
A possibility is to use the “html2pdf” library. This library lets you generate a PDF from a container in Appfarm, or in your use case create a PDF of the container that contains the Gant chart.
Below is a step by step guide on how to implement this:
Hope this solves your use case, if not let me know ![]()
Thank you Ulrik!
I will check that out, it looks like it would solve our case, but I will follow up if I encounter any problems! ![]()
Hi Ulrik,
I have just had time to try the implementation and I do not get it to work with the gantt chart. I am, however, able to print out other types of modules such as buttons and containers.
It might simply not be able to print out an advanced visualization component such as the gantt chart. Would you know if anyone from appfarm or the community has managed to do so in the past? ![]()