Abdalla Elawad

Abdalla Elawad

  • 1.1k
  • 1k
  • 107.8k

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>

Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.

Answers (2)