如何使用jquery导出到PDF格式的数据表中的可编辑文本框值 [英] How to export to pdf an editable textbox values in datatable using jquery
本文介绍了如何使用jquery导出到PDF格式的数据表中的可编辑文本框值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用jquery导出到PDF格式的数据表中的可编辑文本框值
我尝试过:
$(' #example2')。DataTable({
processing: true ,
// sAjaxSource :/ Master / AddDivision,
dom:' lBfrtip',
< span class =code-string> buttons:[
{
extend:' collection',
text:' 导出',
按钮:[
' 复制',
' excel',
' csv',
' < span class =code-string> pdf',
' print'
]
}
],
销毁: true
});
但是这些值是可编辑的,因此它无法在excel或pdf中显示为空。所以给我解决方案..
解决方案
(' #example2')。DataTable({
processing: true ,
// sAjaxSource:/ Master / AddDivision,
dom:' lBfrtip',
buttons :[
{
extend:' collection',
text :' 导出',
按钮:[
' copy',
' excel',
' csv',
' pdf',
' print'
]
}
],
销毁: true
}) ;
但是这些值是可编辑的,所以它无法在excel或pdf中显示为空。所以给我解决方案..
how to export to pdf an editable textbox values in datatable using jquery
What I have tried:
$('#example2').DataTable({
"processing": true,
//"sAjaxSource": "/Master/AddDivision",
"dom": 'lBfrtip',
"buttons": [
{
extend: 'collection',
text: 'Export',
buttons: [
'copy',
'excel',
'csv',
'pdf',
'print'
]
}
],
destroy: true
});
but these values are editable so it can not show in excel or pdf are blank.so give me solution..
解决方案
('#example2').DataTable({ "processing": true, //"sAjaxSource": "/Master/AddDivision", "dom": 'lBfrtip', "buttons": [ { extend: 'collection', text: 'Export', buttons: [ 'copy', 'excel', 'csv', 'pdf', 'print' ] } ], destroy: true });
but these values are editable so it can not show in excel or pdf are blank.so give me solution..
这篇关于如何使用jquery导出到PDF格式的数据表中的可编辑文本框值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文