Not able to export to PDF

Not able to export to PDF

vijaykpinvijaykpin Posts: 1Questions: 1Answers: 0

this is what I have written:

<script type="text/javascript" src="https://cdn.datatables.net/1.10.10/js/jquery.dataTables.min.js"></script>
<link href="https://cdn.datatables.net/r/dt/jqc-1.11.3,jszip-2.5.0,pdfmake-0.1.18,dt-1.10.9,b-1.0.3,b-flash-1.0.3,b-html5-1.0.3/datatables.min.css" rel="stylesheet" />
<script type="text/javascript" src="https://cdn.datatables.net/r/dt/jqc-1.11.3,jszip-2.5.0,pdfmake-0.1.18,dt-1.10.9,b-1.0.3,b-flash-1.0.3,b-html5-1.0.3/datatables.min.js"></script>

$(document).ready(function () {
$('#example').DataTable({
dom: 'Bfrtip', buttons: ['copy', 'excel', 'pdf']
}
);
});

Whenever I try to click the buttons (Excel, PDF) I am getting error file can't be downloaded? Please tell me what am I missing?

This discussion has been closed.