Need Help printing custom labels

Need Help printing custom labels

sudhirvvsudhirvv Posts: 2Questions: 1Answers: 0
edited August 12 in Free community support

Hi guys,
I was able to consume JSON data using ajax to show my table with columns name, address line1, address line2, address line3 and also added buttons to export to excel, pdf and print. Now I needed to print mailing labels in the following format:

name
address line1
address line2
address line3

name
address line1
address line2
address line3

I would like to modify the existing print function to achieve this if possible. Anyone has any idea on how to achieve this or do I have to write my own function? Please help!!

Thanks in advance

Answers

  • kthorngrenkthorngren Posts: 1,127Questions: 16Answers: 233

    I think it might be difficult to modify the print code but I haven't looked at it. There is customize function that might be used for this.
    https://datatables.net/reference/button/print

    I will have the same type of need for my project. I will probably create a custom button and execute specific code that can format the data to fit my labels. I use mailing labels that are 3 across by 10 or so rows.

    Kevin

  • sudhirvvsudhirvv Posts: 2Questions: 1Answers: 0

    Thank you, Kevin

    I will try to create a custom button as well and update if I have any progress.

Sign In or Register to comment.