Hi, Is there a way to use Jquery or Javascript to export the snapshot of Iggrid and IgDataChart to PDF without ASP.net? Please advice. ASP.net is not the technical requirement for this project.
Hello,
Thank you for your post.
About your question, currently it is not possible to export snapshot of igGrid or igDataChart to PDF without ASP.NET.
Here you can find a very nice video regarding Export igGrid to PDF. Also you can Export excel via AJAX call. Other possible solution is to use some html to pdf exporter like this.
If you need further information regarding this, contact me.
Is there any update on this requirement.?
Currently we are in HTML5, AngularJS, and we dont use the ASP.Net Technology and all the referred links in the thread are referring to ASP.Net View.
We are looking for Export to PDF from IGGraph control same as Export to Excel from IGGrid
Thanks in Advance.
hello
Thanks you for your response.
We use HTML5, AngularJS technologies and not using ASP.Net and we dont want to use any external plugins like html2canvas or jsPDF.js etc.,
can't we export the snapshot of IGChart control to PDF with out putting any code as we do in export to excel.
Please advice.
Thank you for contacting us.
There is a way to export image representation of the rendered chart. The method that you should use is "exportImage":
http://help.infragistics.com/jQuery/2015.2/ui.igDataChart#methods:exportImage
And after that you can use our library Infragistics.Documents in order to export the image into PDF format or you can use some external library as it is shown in the jsfiddle sample below.
http://jsfiddle.net/39me4mm8/4/
JavaScript PDF generator:
https://github.com/MrRio/jsPDF
If you have more questions do not hesitate to ask.