How to display a messagetop title at the center of the page on the printed page ?

How to display a messagetop title at the center of the page on the printed page ?

ejazejaz Posts: 2Questions: 1Answers: 0
edited May 2021 in Free community support

i want to display the page title using message top and display it at the center of the page on the printed page. i also want to change the color and font-size etc
this is my code

 {
                extend: 'print',
                title: $('h1').html(),
                text: '',
                filename: '',
                title:'',
                messageTop: 'Complaint',
                className: 'fa fa-print',
               
                customize: function (win) {
                    $(win.document.body)
                        .css('font-size', '10pt')

                    $(win.document.messageTop)
                    .css('text-align', 'center')
                    $(win.document.body).find('table')
                        .addClass('compact')
                        .css('font-size', '10');
                }
                },

Answers

  • ejazejaz Posts: 2Questions: 1Answers: 0
    edited May 2021
     {
                    extend: 'print',
                    title: $('h1').html(),
                    text: ' ',
                    filename: ' ',
                    title:' ',
                    messageTop: 'Complaint',
                    className: 'fa fa-print',
                   
                    },
    
This discussion has been closed.