Need Help printing custom labels

Need Help printing custom labels

sudhirvvsudhirvv Posts: 2Questions: 1Answers: 0
edited August 2017 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: 21,308Questions: 26Answers: 4,947

    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.

  • bartdereubartdereu Posts: 10Questions: 5Answers: 0

    Did anyone of you succeeded in that ? I'm facing the same problem.

This discussion has been closed.