• Resolved Westiejax

    (@westiejax)


    Hi, we have created tables in Table Press which are editable – some have checkboxes and others have editable cells. However, I haven’t been able to get them to print. I either get the whole page to print, or a blank table. Tried the code [print-me target=”table id=1″ /] but it didn’t work. Any ideas how to do this?
    Thanks in advance!

    https://www.ads-software.com/plugins/print-o-matic/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Baden

    (@baden03)

    happy to help. Can you provide a link to your page so we can give you precise advice?

    Thread Starter Westiejax

    (@westiejax)

    Yay!! Thanks very much, this has been doing my head in!

    Here’s the link:-

    https://www.buildingguide.co.nz/resources/3482-2/

    [table id=1 /]
    [print-me target=”table id=1″ /]

    When I go to print, I just get a blank page. I tried putting the print-me target= inside the original [table id=1 /] code but that didn’t work either, the table disappeared ??

    Thanks for your help in advance

    Plugin Author Baden

    (@baden03)

    Try this:

    [print-me target=".dataTables_scroll" /]

    Thread Starter Westiejax

    (@westiejax)

    Thanks heaps. It worked on that one, but not on any of the others I have tested.

    Here are the links to a couple of them:-
    https://www.buildingguide.co.nz/construction/wrapping-up/
    [table id=6 /]
    [print-me target=”.dataTables_scroll” /]

    https://www.buildingguide.co.nz/planning/wants-and-needs/
    [table id=2 /]
    [print-me target=”.dataTables_scroll” /]

    [table id=3 /]
    [print-me target=”.dataTables_scroll” /]

    Not quite sure what I am doing wrong ??

    Plugin Author Baden

    (@baden03)

    try using:

    [print-me target=".dataTables_wrapper" /]

    Thread Starter Westiejax

    (@westiejax)

    Yay – it worked!! Thank you so much for your help ??

    Plugin Author Baden

    (@baden03)

    Huzzah! If you are happy with the plugin or it’s support (and you know it), please consider leaving a review.
    Issue (still) marked as resolved!

    Thread Starter Westiejax

    (@westiejax)

    Hi Baden

    I have just realised that on one of our pages we have several tables, and have used the [print-me target=”.dataTables_wrapper” /] after each one, however, only the first table prints?

    Here is the link:-

    https://www.buildingguide.co.nz/construction/construction-checklist/

    Plugin Author Baden

    (@baden03)

    Hey-hey, OK!
    So if you want to have multiple print icons that are targeting only the area above it, each print icon would need to use the unique ID of the element it follows like so:

    [print-me target="#tablepress-9_wrapper" /]

    Now if you wanted to have multiple triggers, but it printed ALL the elements, then you would need to ‘wrap’ all your .dataTables_wrapper elements into a nice div, and give it a unique id… then target that iD.

    Does this make any sense?

    Thread Starter Westiejax

    (@westiejax)

    Thanks for your quick reply!

    Okay – so I tried it on the second table on the page:-

    [table id=10 /][print-me target=”#tablepress-10_wrapper” /]

    but when I go to print it, there is just a blank page ??

    Plugin Author Baden

    (@baden03)

    Simply change the target to tablepress-10 like so:

    [print-me target="#tablepress-10" /]

    Thread Starter Westiejax

    (@westiejax)

    Yay – thanks Baden – it worked ??

    Plugin Author Baden

    (@baden03)

    Schweet! Issue marked as resolved!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Print tables’ is closed to new replies.