export data in pdf
export data in pdf
I populate data in table through jquery now i want to export that data in pdf /excel For this I try this link export data link
link
I try this work successfully then i this code add in my file
<a href="#" onclick="$('#tabledata').tableExport({ type: 'excel', escape: 'false' });">XLS</a>
<a href="#" onclick="$('#tabledata').tableExport({ type: 'pdf', escape: 'false' });">PDF</a>
I create table with the help pf jquery
success: function (result) {
var final = JSON.parse(result.d).response;
console.log(JSON.parse(result.d).response);
$("#tabledata").empty();
if (final.length > 0) {
$("#tabledata").append(
"<tr><th>ID</th><th>Owner</th><th>RegNo</th></tr>");
for (var i = 0; i < final.length; i++) {
if (final[i] !== null) {
$("#tabledata").append("<tbody><tr><td>" +
final[i][0] + "</td> <td>" +
final[i][1] + "</td> <td>" +
final[i][2] + "</td></tr></tbody>");
}
}
$("#tabledata tr:first").addClass('GridviewScrollHeader');
$("#tabledata tr").addClass('GridviewScrollItem');
$("#tabledata").addClass('GridviewScrollPager');
}
ok now this get data with header also but now the problem is there is only two columns display in pdf third column is not display i think because of formatting check image
so how i done this
Topic Participants
bakhtawarashiq
adobewebs