Print button with a specialized Print.css file
Print button with a specialized Print.css file
When you're using the initialization of the print button, is there any possible way to use an external print.css file for use in the Datatables print button with an incredibly old dot-matrix printer? If anyone can point me in the right direction the would be wonderful!
This discussion has been closed.
Replies
The simplest way to style your printing is probably by using your own CSS file.
You would reference it in your HTML like so:
(The div is unnecessary.)
I have no reason to think that DataTables would interfere with this, but I'm no expert.
@tangerine is correct - DataTables won't mess with that stylesheat - it will be included on the exported table's page ready for print. Alternatively, you could use the
customizecallback of theprintbutton type to inject thatlinkinto the print view.Allan
But doesn't dataTable Print button remove all classes from the table in the print view page??
The classes for the
tableitself should still be present.Allan