Printer properties
Hi,
If any one knows, how to get the printer properties using java script or JSP or Java.
My requirement is, if the connected printer is 40 column printer then I have to generate 40 column report; otherwise if it is 80 col printer, then I have to generate 80 column printer.
Can any one help me regardint this, to find the printer is 40 column or 80 column printer.
Hi prakash.sada,
The Java Tutorial pages on printing may help:
http://java.sun.com/docs/books/tutorial/2d/printing/index.html
However, from the sounds of it your machine is connected directly to an older printer, perhaps via the parallel-port. (Modern printers support various fonts and font-sizes, so the concept of "columns" is somewhat moot, as 40 characters in Arial 12pt will be wider/narrower than the same characters in, say, BitstreamVera 16pt.)
Is it a parallel printer? Something else?