Sorry for the late response, have you been able to get this to work?
I was able to print the contents of the table with this script
table = event.source.parent.getComponent('Table')
table.print()
It looks like you are using the same code. Just a note, I didn’t import anything. If you have not gotten this to work I would consider updating your printer driver. Since you are seeing the printer dialogue box that tells me Ignition is doing what it is supposed to do.