export table to pdf

export table to pdf

susersuser Posts: 68Questions: 18Answers: 0
edited August 2016 in Free community support

i am trying to export table data to pdf by doing this
first i add links

<script type="text/javascript"  src="https://code.jquery.com/jquery-1.12.3.js"></script>
<script type="text/javascript"  src="https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/buttons/1.2.2/js/dataTables.buttons.min.js"></script>
<script type="text/javascript" src="https://cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/pdfmake.min.js"></script>
<script type="text/javascript" src="https://cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/vfs_fonts.js"></script>
<script type="text/javascript"  src="https://cdn.datatables.net/buttons/1.2.2/js/buttons.html5.min.js"></script>

then i add button
<asp:Button ID="pdf" runat="server" Text="PDF" />

so when i click on button then pdf file not export

This discussion has been closed.