Cannot read property _calcWidth of undefined

Cannot read property _calcWidth of undefined

Peter.prc48Peter.prc48 Posts: 22Questions: 6Answers: 1

I'm trying to create a PDF report using pdfmake and data from Datatables.Net. I was able to produce a simple text only test pdf but when I introduce a table with data in my document definition, it throws the error 'Cannot read property _calcWidth of undefined' which originates in the datatables.min.js file.
I understand that pdfmake.js is bundled in with datatables but I've scoured the pdfmake documentation and they have no reference to this attribute.
Is this a Datatables-specific requirement and if so, how can I customise the pdf?
Thanks.

Answers

  • kthorngrenkthorngren Posts: 21,449Questions: 26Answers: 4,975

    Are you trying to customize the PDF output?

    Post your Datatables init code.

    Kevin

This discussion has been closed.