using Print Button from Button Extension to print images and checkboxes
using Print Button from Button Extension to print images and checkboxes
travisaltec
Posts: 2Questions: 2Answers: 0
I'm using the datatables extension Buttons.Print.js to allow users to quickly print data from the table. I add a thumbnail image to one of the table cells. It does not appear to show after clicking PRINT. I also noted that checkboxes do not appear to show up.
Is there anyway to resolve these issues?
Here's an example of a row that is created for the datatable.
<tr role="row" class="odd">
<td class="sorting_1"><a href="#" onclick="loadpartinfo('071050191-','C');">071050191-C</a></td>
<td><img src="http://website.com/thumbs/071050191.png" id="thumb_31891" style="height:32px;width:50px;" class="thumbs"></td>
<td>WELDMENT COMPONENT;SHEAR PLATE</td>
<td id="qty_31891">4</td>
<td>LASER</td>
<td id="chkcontainer_31891" class="chkbox"><input type="checkbox" id="chkbx_31891" onclick="receivedpart('31891')"></td>
</tr>
The Thumb and the checkbox do not appear on the page after clicking print.
This discussion has been closed.
Answers
Hi travisaltec,
I am having the same issue (checkbox and image are not displayed in the print button). I saw an example which shows image in background. https://datatables.net/extensions/buttons/examples/print/customisation.html . which is not what i wanted.
Were you able to find any solution for printing the image that is displayed in each row?
Regards,
Vikraman