Error button print

Error button print

silenssilens Posts: 101Questions: 40Answers: 0
edited December 2017 in Free community support

Hola, tengo este error cuando pulso sobre el boton de imprimir:

buttons.print.min.js:2 Uncaught TypeError: b.buttons.exportInfo is not a function.

En la web tengo:
<script type="text/javascript" language="javascript" src="//cdn.datatables.net/buttons/1.5.0/js/buttons.print.min.js"></script>

<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/buttons/1.5.0/css/buttons.dataTables.min.css"></script>

Los demas botones funcionan correctamente.

Esto lo tengo en mi tabla:
dom: 'B<"clear">lfrtip', buttons: [ 'copy','csv', 'excel', 'pdf', 'print' ],

El error sale cuando pulso sobre print. A que se puede deber? Muchas gracias

This question has an accepted answers - jump to answer

Answers

  • silenssilens Posts: 101Questions: 40Answers: 0

    Ok. Solucionado, era un error con la version . He puesto esta versión y solucionado

    <script type="text/javascript" language="javascript" src="https://cdn.datatables.net/buttons/1.5.0/js/dataTables.buttons.min.js"></script>

  • allanallan Posts: 63,457Questions: 1Answers: 10,466 Site admin
    Answer ✓

    Hi,

    Thanks for your question. As noted in the forum rules, please post a link to a running test case showing the issue so we can offer some help. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Allan

This discussion has been closed.