function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
soni rajputsoni rajput 

Problem in generating PDF of a Gantt chart

Hi,

 

I am displaying a gantt chart of Project, Milestones and task using visual force page. For gantt chart i am using js Gantt jquery library.

My code is displaying chart properly now my problem is how to generate PDF of that chart.

 

 

Thanks,

Soni

bob_buzzardbob_buzzard
You can't execute javascript in a page rendered as PDF, so you won't be able to do that. I tend to use the print to pdf capability of chrome after generating the page - I'm sure there are options for other browsers too.
colemabcolemab

Salesforce is working on enhancing the PDF render engine.  A rumor that I heard indicated that executing javascript prior to generating the PDF was one of the things they were looking into.  No ETA related to the rumor though so this doesn't help you now but just an FYI so you can keep an eye on it for a long term solution.

Pankaj JagdalePankaj Jagdale
Hi Soni Rajput,

    Can you please share your gannt chart code with me? Or can you share a demo link of it with me? Want to see as how its is made as I have a same development requirement. Thank you.