Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #110685
    Shubham Printe
    Participant

    Hi Smart HTML Elments Support Team,

    I hope this message finds you well.

    I’m reaching out to you regarding an issue I’ve encountered while utilizing the exportData feature in the smart-webcomponents-react library for implementing a Gantt Chart in my project.

    Upon invoking the exportData method, I encountered the error message: “smart-gantt-chart: Missing reference to jszip.min.js in method exportData.”

    While attempting to troubleshoot this issue, I came across two forum discussions on your platform that seemed related, but unfortunately did not provide a solution to my problem:

    1. Error on XLSX export
    2. Missing reference to jszip.min.js

    Despite reviewing these discussions, I’m still facing difficulties in resolving the error. Below is the code snippet I’m using:

    //————————————————//
    const ganttChartRef = useRef<any>(null);

    const handleExport = () => {
    const ganttChart = ganttChartRef?.current;
    ganttChart.exportData(‘pdf’);
    }

    <GanttChart ref={ganttChartRef} />
    //————————————————//

    Could you please provide further assistance or guidance on how to address this issue? Any additional insights or recommendations would be greatly appreciated.

    Thank you for your attention to this matter. I’m looking forward to your prompt assistance.

    Best regards,
    Shubham

    #110686
    Markov
    Keymaster

    Hi Shubham,

    These files should be added as they are used in the data export process:

    ` <script type=”text/javascript” src=”https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.5/jszip.min.js”></script&gt;
    <script type=”text/javascript” src=”https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.38/pdfmake.min.js”></script&gt;
    <script type=”text/javascript” src=”https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.38/vfs_fonts.js”></script&gt;`

    Best Regards,
    Markov

    Smart UI Team
    https://www.htmlelements.com/

    #110694
    Shubham Printe
    Participant

    Hi Markov,

    I appreciate you sharing these files directly with me.

    Best Regards, Shubham

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.