how to print in footer of each page pagewise sum of columns

how to print in footer of each page pagewise sum of columns

yervaakshayyervaakshay Posts: 2Questions: 1Answers: 0
edited April 2018 in Free community support

onclick print button I want on each page of footer, sum of columns records

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
  • Rob BrunRob Brun Posts: 56Questions: 2Answers: 14

    Hi yervaakshay, I think that in your print object you have to set the footer property to true. Like

    {
                 name: 'print',
                 extend: 'print',
                 footer: 'true',
                 title: "title",
                 customize: function (win) {
                     $(win.document.body).css('font-size', '7pt');
                     $(win.document.body).find('table').addClass('compact').css('font-size', 'inherit');
                 }
             }
    

    Be sure that you actually have a footer on your table or else your print will throw an error and you may end up banging your head against a wall for several hours before you figure out why. Happened to a friend of mine :-)

    Shay

  • yervaakshayyervaakshay Posts: 2Questions: 1Answers: 0

    thanks for your response friends,
    but I implemented these all,
    Now I want on print page sum of columns records in footer on each pages

This discussion has been closed.