Search
3690 results 991-1000
Forum
- 1st Sep 2016Stick footer PDF ExportHi all, I saw some questions and no answer about sticky footer, so I am pasting the code I came up with. Somebody may need to use it. customize: function(doc) { var today = new Date(); var dd = today.getDate(); var mm = today.getMonth()+1; //January is 0! var yyyy = today.getFullYear(); if(dd<10){ dd='0'+dd } if(mm<10){ mm='0'+mm } var today = mm+'/'+dd+'/'+yyyy; var cols = []; cols[0] = {text: 'PRINT NAME AND TITLE', alignment: 'left', margin:[10] }; cols[1] = {text: 'DATE:', alignment: 'right', margin:[0,0,20] }; var objFooter = {}; objFooter['alignment'] = 'center'; doc["footer"] = function(currentPage, pageCount) { var footer = [ { alignment: 'left', stack: [ { canvas: [ { type: 'line', x1: 20, y1: 5, x2: 133, y2: 5, lineWidth: 0.5 } ] }, { text: 'PRINT NAME AND TITLE', alignment: 'left', margin:[20, 5, 0, 0] }, { text: today, color: 'grey', fontSize: 8, alignment: 'left', margin:[20, 2, 0, 0] } ] }, { stack: [ { canvas: [ { type: 'line', x1: 240, y1: 5, x2: 286, y2: 5, lineWidth: 0.5 } ] }, { text: 'DATE', alignment: 'right', margin:[0, 5, 20, 0] }, { text: 'Page '+currentPage+" of "+pageCount, alignment: 'right', color: 'grey', fontSize: 8, margin:[0, 2, 20, 0] } ] } ]; objFooter['columns'] = footer; return objFooter; }; } This is returning some text and a line (on top) on the right side, below it the current date. More text and a line (on top) on the left side and then below - the current page of the report. Cheers
- 29th Jul 2016Colspan not working in footer upon pdf exportExample : http://live.datatables.net/wiporaga/1/
- 26th Apr 2016Export to PDF without inputHey Daniel ! Is there any way to run the export function without the input contents? only the text in the thead lines? Thank you!
- 25th Apr 2016How can I set the (pdf, excel,..) buttons to create a file from the filtered rows?Because I found a solution that used https://datatables.net/extensions/tabletools/ but this extension is retired. How should I proceed? This is a piece of my code, concerning the buttons: dom: 'Blfrtip', buttons: [ 'copyHtml5', 'excelHtml5', 'csvHtml5', 'pdfHtml5' ],
- 10th Mar 2016arabic text has white color & reversed using PDF export buttondata using export button (pdfhtml5) the problem is all
- 3rd Jan 2016unable to export footer in excel, pdf and printerHi, The problem is that header and footer data are not exported but displaying Even if I use "bFooter": true, it doesn't work. I'm using the latest version of datatables. DOM : Bfrtip Does anyone know how to solve this problem?
- 27th Apr 2015Datatable pdf and excel export not working..,here is the link.., http://jsfiddle.net/Glaps_Gokul/9zr4r2Lp/
- 20th Mar 2015TableTools Multiline Cell in PDF Exportexcel export button.) For PDFs, the additional lines are
- 16th Dec 2014how to add loading.gif on "Export to pdf" click?At aButton click, it takes too much time to export particular datatable into csv,pdf format dialog box. Is their any option to add loading.gif image at aButton click????
- 29th Nov 2014CUSTOMIZING PDF AND CSV PRINT OUT SHEETI CAN CUSTOMIZE MY PDF,EXCEL AND CSV PRINTOUT WITH