TableView: Print to PDF |
This example shows you how to extend the TableView to support printing to a PDF file.
Here is a picture of the generated PDF file in Acrobat Reader:
In order to support printing the TableView to PDF, the TableView has to be subclassed as it needs to implement the com.sas.awt.print.PrintableInterface. The com.sas.awt.print.PDFGraphics class is used to render the table in the PDF file format.