Custumize Print

Custumize Print

Massimo74Massimo74 Posts: 85Questions: 1Answers: 0

Hi
I'm customizing the print I would like to insert the page number in the bottom right corner

                extend: 'print',
                className: 'btn btn-primary btn-icon-split',
                titleAttr: 'Stampa Tabella',

customize: function (doc) {
var logo ='data:image/png;base64,iVBORw.......';
var now = new Date();
var jsDate = now.getDate()+'-'+(now.getMonth()+1)+'-'+now.getFullYear();
$(doc.document.body)
.css( 'font-size', '10pt' )
.prepend('<img style="position:absolute; top:10; left:0;width:40" src="'+logo+'">')
.prepend('

Web-App per la Gestione delle Scadenze

')
.prepend('

Creato il: '+jsDate.toString()+'

')
.prepend('

Pagina '+$page+' of '+$pages+'

')
},

Thank's

Replies

  • colincolin Posts: 15,144Questions: 1Answers: 2,586

    This thread should help, it's asking the same thing.

    Cheers,

    Colin

  • Massimo74Massimo74 Posts: 85Questions: 1Answers: 0

    Here
    sorry I can't understand .... you can help me thanks.

This discussion has been closed.