Printer resolution (again?)

B

Bastard

Im having a quite simple problem (?) Got this frame that I'd like to
print on a printer. But it's too big to fit the paper? I assume that
setting a higher resolution (dpi) for the printer should make the
output smaller - but no?! Im able to switch to landscape which helps a
bit, but not enough.

Please enlighten me.. Here is my example. parent is a Frame that
implements Printable.


PrinterJob printJob = PrinterJob.getPrinterJob();
printJob.setPrintable((Printable)parent);
PrintRequestAttributeSet set = new HashPrintRequestAttributeSet();
PrinterResolution res = new PrinterResolution(600, 600,
PrinterResolution.DPI);
set.add(res);
set.add(OrientationRequested.LANDSCAPE);
if(printJob.printDialog(set)){
try {

printJob.print(set);

}
catch (Exception PrinterExeption) { }
}

Thanks in advance,

Bastian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,560
Members
45,035
Latest member
HoTaKeDai

Latest Threads

Top