jquery-barcode.js
jquery-barcode.js
BhavinBhatt
Posts: 27Questions: 9Answers: 0
I have put barcode for a column using jquery-barcode.js plugin.
It shows barcode well inside datatable .
Now I want to print with barcode using print button.
I've used stripHtml:false but its not showing barcode in print window and not printing also.
Please help.
Answers
We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. 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.
Cheers,
Colin
As Colin said, we'd need a running test case, but I suspect that it won't be possible with how the print view currently works. At least not without tweaking. The print view is constructed from the data in the table, and does not run
rowCallback
or anything else on it. Your bar code script is probably displaying the barcode using acanvas
or something like that, so it would need to be run on the print view using thecustomize
callback as well.Allan
Thanks Colin, Allan,
Can you please provide sample code for it.
Or I use same barcode logic in customize function??
Br,
Bhavin.
Link to your page showing the issue or create an example in JSFiddle that we can look at, please.
If you need us to build an example from scratch, we offer support packages that would cover that.
Allan