Smart UI Components & Libraries – Grid, Scheduler, Gantt, Kanban for Angular, React, Next.js, Vue, Blazor, JavaScript › Forums › Gantt › Gantt Chart – Export Data
Tagged: Export data, gantt chart
- This topic has 2 replies, 2 voices, and was last updated 1 year, 5 months ago by
Shubham Printe.
-
AuthorPosts
-
April 29, 2024 at 1:16 pm #110685
Shubham Printe
ParticipantHi 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:
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,
ShubhamApril 29, 2024 at 3:11 pm #110686Markov
KeymasterHi 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>
<script type=”text/javascript” src=”https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.38/pdfmake.min.js”></script>
<script type=”text/javascript” src=”https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.38/vfs_fonts.js”></script>`Best Regards,
MarkovSmart UI Team
https://www.htmlelements.com/May 3, 2024 at 12:19 pm #110694Shubham Printe
ParticipantHi Markov,
I appreciate you sharing these files directly with me.
Best Regards, Shubham
-
AuthorPosts
- You must be logged in to reply to this topic.