Good evening, my question is the following.
I am using datatables to load a list into a table and I am also using the export properties. For the latter it is that I have problems, what happens is that I do not want the title to appear in the first row of the sheet of my exported excel document.
//este codigo me imprime en la primera fila el titulo y es lo que no quiero
dom: 'Bfrtip',
buttons: [
{
extend: 'excel',
text: '<i class="fa fa-file-excel-o"></i> Exportar a Excel',
title: 'Mi Titulo',
}
],
//Use este codigo en reemplazo, me soluciona el problema pero me genera otro
//Que es el de la imagen, no tengo problemas al recuperar, porque me muestra
//todos los datos sin excepcion, pero es tedioso para el usuario tener que
//abrir el archivo y salga siempre ese mensaje
dom: 'Bfrtip',
buttons: [
{
extend: 'excel',
text: '<i class="fa fa-file-excel-o"></i> Exportar a Excel',
filename: 'Mi Titulo',
title: ''
}
],
Seeing the problem is in the 'title' attribute , even if they put empty quotes or a value equal to null, this problem persists.
Good night.
Thanks for the collaboration.
I have changed the version of the datatable files that I was using, and the problem is solved, I see that it is generally a button version problem .
But I hope it can be fixed without having to change the whole version of the files.