Printing Components


I have a problem with printing components. I have a table that is too big for the page and so it automatically creates a scrollbar for the operator to scroll through, which is perfect, but I have trouble when I come to print it.

If I use event.source.parent.getComponent(‘PrintTable’).print(), it works just fine but I have the printout coming over two pages and I can’t seem to resize, or fit to one page or do any of the nice things that system.print.createPrintJob can do.

If I use system.print.createPrintJob, it prints the component along with the scrollbar, so I don’t get to see the whole table.

Is there a way of accessing all the useful features of system.print.createPrintJob, with event.source.parent.getComponent(‘PrintTable’).print() ?

Kind Regards,