- Code: Select all
/**
* Function print table
* @return
* @throws PrinterException
*/
public boolean printTable() throws PrinterException {
String title = session.getFrame().getTitle();
MessageFormat header = new MessageFormat(title);
MessageFormat footer = new MessageFormat(buildFooter());
try {
return table.print(com.jidesoft.grid.SortableTable.PrintMode.NORMAL, header,
footer, true, null, true, null);
} catch (ArrayIndexOutOfBoundsException ex) {
//Error of out of bounds the firs call
return table.print(com.jidesoft.grid.SortableTable.PrintMode.NORMAL, header,
footer, true, null, true, null);
}
}
The personalized the print mode, have two methods, such as I print the 65 columns and auto adjust to the impression, how is it made ? Thanks



