I am trying to print a Fanfold ( 358 x 305 mm) page by setting javaPageFormat with a Paper(1017,864). But the printer identified it as a A2 page and there for the paper height is too large for my requirement.
I the PageFormat with Paper(540,864) works fine for Fanfold ( 210 x 305 mm) paper and Printer too recognize it as a Fandfold 210x305mm.
Just for some clarification..It sounds like you have told your application what size to print the page, and are asking how to tell the printer to print it at that size?
Err... is that what the class is supposed to do? I don't understand your question completely, and the API is a bit unclear to me. [ December 03, 2005: Message edited by: C Clites ]
Joined: Nov 14, 2005
Hi, What I am doing is Printing a JEditorPane with PrinterJob. I am setting the PageFormat of the PrinterJob with Paper(1017,864) which is equal to the Fanfold( 358 x 305 mm ) dimensions. But when I trace the print queue it seams that Printer is notified with A2 as its Page size. There for the form feed is not correctly done. But the Paper(540,864) which is equal to the Fanfold (210x305mm) is correctly identified. Thank you for your reply.