From what I can see, the structure has changed compared to the earlier version 6.0.5. Back then, there was a tagName with value “TABLE”, which seems to be missing now. Because of that, the code runs into the else block where the variable yh is not defined.
If it won’t fix the issue, could you please reproduce issue in the snippet above(open the demo => reproduce the issue => click the “Save” button => send me the new link)?
Is it possible to add customization options to the new export function, since we have a lot to configure there? Furthermore, we need to perform the local export rather than using the online export service due to our data privacy requirements, and we have both Linux and Windows systems.
Would a fix for the older toPDF be an option? That way, we could gradually transition to the new logic on our side.
Furthermore, we need to perform the local export rather than using the online export service due to our data privacy requirements, and we have both Linux and Windows systems.
Yes, there is a separate export module, that you can use locally:
Would a fix for the older toPDF be an option?
Unfortunately, there are no plans to update the old export module.
Okay, too bad, unfortunately this can’t be done anymore.
We can’t quickly rebuild this for this release.
We’ve added the following code so that printing the monthly view works again.
If you think you can take it as a fix on your side, that would be great.
// CB-JS-COMMENT Anpassungen für Update von Version 6 auf 7 START
// Alle Monatszeilen selektieren
document.querySelectorAll('.dhx_cal_month_row').forEach(row => {
const numbersInRow = [];
// In jeder Zeile alle Wochen-Zahlen extrahieren
row.querySelectorAll('.dhx_month_head').forEach(head => {
const num = head.textContent.trim();
if (num) {
numbersInRow.push(num);
}
});
let numbersList = numbersInRow.join('|');
k += `
<row><![CDATA[` + numbersList + "]]></row>";
});
t = document.querySelectorAll('.dhx_month_head')[0].offsetHeight;
// CB-JS-COMMENT Anpassungen für Update von Version 6 auf 7 ENDE
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan