Set the attributes in the print job to control page size, orientation, etc.
Don't recall the exact syntax at the moment.
There are also a couple of printing mechanisms in Java. Use the most recent
one. It's a bit more complicated, but more capable and usable. There are
tutorials on line.
[
Update:
I have continued reading and discovered height MUST be greater than width... so
I have tried swaping the values of width and height in "paper.setSize(width,
height)" to "paper.setSize(height, width)" and setting
"PageFormat.setOrientation(PageFormat.LANDSCAPE)", however now when printin
Hello everyone I'm new to this forum and I wanted to see if any of you could
point me in the right direction regarding some trouble I've been facing to
print a document using the "printable" interface.
I am developing a system which prints out two kinds of documents. (one is
letter size, and th