Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
Hello, I want to know how to set the data table column horizontally in pdf.
This question has an accepted answers - jump to answer
Do you mean you want to twist the table, so the headers are vertical? If so, that would need a reformatting of the data. This thread shows how to get the data from the server (so nothing like what you want), but it does show how you can manipulate the data for the export functions.
when I export data in pdf then the table will look as follow
ID Name Age City
1 A 25 C1
2 B 26 C2
but I want to show the following format when data exported in a pdf file.
ID 1 2
Name A B
Age 25 26
City C1 C2
can we do this ?
Sorry no - that is not something that DataTables supports at this time.
Okay.Thank you @allan
It looks like you're new here. If you want to get involved, click one of these buttons!
DataTables designed and created by SpryMedia Ltd.
SpryMedia Ltd is registered in Scotland, company no. SC456502.