Fire Fox II
11-08-2013, 20:32
Salve raga
ho bisogno di stampare delle tabelle con tanto di messaggio in alto ed in basso, e fin qui nessun problema...
Il codice utilizzato è il seguente
final MessageFormat headerFormat = new MessageFormat("messaggio");
final MessageFormat footerFormat = new MessageFormat("- {0} -");
PrintRequestAttributeSet set = new HashPrintRequestAttributeSet();
set.add(OrientationRequested.LANDSCAPE);
try {
tabella.print(PrintMode.FIT_WIDTH, headerFormat, footerFormat, true, set, false);
} catch (PrinterException ex) {
Logger.getLogger(x_tabella.class.getName()).log(Level.SEVERE, null, ex);
}
Il problema sta nella dimensione del MessageFormat che è eccessiva e vorrei intervenire su questo font...
In che modo?
Thanks
ho bisogno di stampare delle tabelle con tanto di messaggio in alto ed in basso, e fin qui nessun problema...
Il codice utilizzato è il seguente
final MessageFormat headerFormat = new MessageFormat("messaggio");
final MessageFormat footerFormat = new MessageFormat("- {0} -");
PrintRequestAttributeSet set = new HashPrintRequestAttributeSet();
set.add(OrientationRequested.LANDSCAPE);
try {
tabella.print(PrintMode.FIT_WIDTH, headerFormat, footerFormat, true, set, false);
} catch (PrinterException ex) {
Logger.getLogger(x_tabella.class.getName()).log(Level.SEVERE, null, ex);
}
Il problema sta nella dimensione del MessageFormat che è eccessiva e vorrei intervenire su questo font...
In che modo?
Thanks