需要知道如何将WebGrid导出为具有不同文件名的PDF文件
C#,MVC
<script>
$(document).ready(function () {
gridDataTableView("UsersList.xls");
});
gridDataTableView = function (fname) {
$('#tblGrid').dataTable({
"bFilter": true,
"bLengthChange": false, "bPaginate": true, "bInfo": true,
dom: 'Bfrtip',
"order": [[0, 'desc'], [1, 'desc']],
buttons: [{ extend: 'copy', text: 'Copy to clipboard', className: 'copyButton' },
{ extend: 'excelHtml5', text: 'Export to Excel file', className: 'link_button', title: fname }]
});
}