Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

how to change font size of exported excel using bootstrap datatable excel export

i am using bootstrap datatable for showing results. i am using excel export button in the page. i got it. but i dont know how to change font size of excel . please help me. i tried to change font size but i didn't know where to start.

$(document).ready(function(){  

  $('#mytable').DataTable({
     dom: 'Bfrtlp',
         info:false,
          lengthMenu: [ [10, 25, 50, -1], [10, 25, 50, "அனைத்தும்"] ],
       buttons: [

        /*{
            extend: 'copyHtml5',
            exportOptions: {
                columns: [ 0, ':visible' ]
            }
        },*/

        /*{
            extend: 'print',
            footer: false,
            exportOptions: {
                columns: [ 0, 1, 2, 5 ],
                 stripHtml: false
            },
             customize: function (win) {

              $(win.document.body).find( 'table' )
                    .addClass( 'display' )
                    .css( 'font-size', 'inherit' );
        }*/



        {
            extend: 'excelHtml5',
             className: 'big',
            exportOptions: {
                columns: ':visible'
            }
        },
        {
            extend: 'pdfHtml5',
            exportOptions: {
                columns: [ 0, 1, 2, 5 ]
            }
        },
        'colvis',
    ],
      "scrollX": true,

    "language": {

        "sEmptyTable":     "அட்டவணையில் தரவு கிடைக்கவில்லை",
"sInfo":           "_START_ முதல் _END_ வரை",
"sInfoEmpty":      "0 உள்ளீடுகளை 0 0 காட்டும்",
"sInfoFiltered":   "(_MAX_ மொத்த உள்ளீடுகளை இருந்து வடிகட்டி)",
"sInfoPostFix":    "",
"sInfoThousands":  ",",
"sLengthMenu":     "_MENU_ பதிவுகளைக் காண்பி",
"sLoadingRecords": "ஏற்றுகிறது ...",
"sProcessing":     "செயலாக்க ...",
"sSearch":         "தேடல்:",
"sZeroRecords":    "பொருத்தமான பதிவுகள் இல்லை",
"oPaginate": {
    "sFirst":    "முதல்",
    "sLast":     "இறுதி",
    "sNext":     "அடுத்து",
    "sPrevious": "முந்தைய"
},
"oAria": {
    "sSortAscending":  ": நிரலை ஏறுவரிசையில் வரிசைப்படுத்த செயல்படுத்த",
    "sSortDescending": ": நிரலை இறங்கு வரிசைப்படுத்த செயல்படுத்த"
},

"buttons": {
            colvis: 'நெடுவரிசை மறை',
            excel : 'எக்ஸல் பிரதி எடு',
            print : 'அச்சு நகல் எடு',
        }




    }});  



});  

Comments