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
Il problema sta nella dimensione del MessageFormat che è eccessiva e vorrei intervenire su questo font...codice: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); }
In che modo?
Thanks

Rispondi quotando
