Can any one share me how to print report in pdf format when button click ,mvc view just have single button which shows report ?? i do not want to bind data in view,just want in action method .
@model CallCenterCRM.TBL_CustomerMaster
<script>
$(document).ready(function () {
$('#example').DataTable({
dom: 'Bfrtip',
buttons: [
//'copyHtml5',
//'excelHtml5',
//'csvHtml5',
'pdfHtml5'
]
});
});
</script>
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="form-group">
<div class="col-md-10">
@Html.ActionLink("Show All Customer", "ShowReport", "Customer")
</div>
</div>
}
public ActionResult ShowReport()
{
return View();
}