This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.
Regards, Varuna Gunasekera
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com