Resources

SAS® AppDev Studio 3.0 Developer's Site

TableView: Print to PDF   About It Build It  

This example shows you how to extend the TableView to support printing to a PDF file.

See It

TableView with PDF print button

Here is a picture of the generated PDF file in Acrobat Reader:

TableView PDF print results viewed in Adobe Acrobat Reader

How It Works

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.