Abdalla Elawad

Abdalla Elawad

  • NA
  • 1k
  • 215.1k

how to resize of Report PDF Export from Data Table ?

Jan 7 2018 1:07 AM
hello guys
 
i need to resize of report exporting from data table , please help me .
 
Thank You
 
<script>
$(document).ready(function(){
$.ajax({
url: 'VehicleService.asmx/GetVehicle',
method: 'post',
dataType: 'json',
success: function (data) {
$('#datatable').dataTable({
'scrollY': 350,
data: data,
columns :[
{ 'data': 'Fleet_No' },
{ 'data': 'Registration_No' },
{ 'data': 'Reg_Alpha' },
{ 'data': 'Vehicle_Barcode' },
{ 'data': 'Vehicle_Status' },
{ 'data': 'ServiceType' },
{ 'data': 'Department' },
{ 'data': 'VehicleType' },
{ 'data': 'Out_Door_Mk' },
{ 'data': 'Out_Door_EL' },
{ 'data': 'Driver_Door_EL' },
{ 'data': 'Vult_Door_Mk' },
{ 'data': 'Vult_Door_EL' },
{ 'data': 'City' },
{ 'data': 'Region' },
],
dom: 'Bfrtip',
buttons: [
'copyHtml5',
'excelHtml5',
'csvHtml5',
'pdfHtml5'
]
});
}
});
});
</script>

Answers (2)