DHTMLX Docs & Samples Explorer

printToWindow(message)

  • message - {string} this message will appear in alert window to instruct user what to do for printing. Set it to null to skip this alert. By default it says “Use browser's menu File→Print preview to setup page layout.”

opens chart in a new window, from where you can print it as you like - you can use browser's “Print preview” menu button to layout the chart on your page, choose a paper size etc, and then print it.

    onPrintButtonClick = function() {
        ganttChartControl.printToWindow();
    }