aspose file tools*
The moose likes Java in General and the fly likes Printing in Java using printDialog Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Printing in Java using printDialog" Watch "Printing in Java using printDialog" New topic
Author

Printing in Java using printDialog

Henrik Engert
Ranch Hand

Joined: Apr 26, 2005
Posts: 70
Hi,

We have an application where the user uses a receipt printer which has rolls of paper. They also have regular printers attached to the PC. The standard printer is NOT the receipt printer.

If the above scenario is true and the user selects to print a receipt with the receipt printer the standard paper that is chosen is A4 and not the standard rollsize of 80 x 297 mm from the receipt printer. Therefore the printing is all messed up, stuff ends up outside the paper. BUT if the user sets it's receipt printer as the standard printer everything works fine, it choses 80 x 297 mm.

When the printDialog appears the user can select 80 x 297 mm and then it works, or else A4 is preselected (if the regular printer is standard for example inkjet or laser).

This is the code we use:



Any clues why it behaves like this?

[ February 08, 2007: Message edited by: Henrik Engert ]
[ February 09, 2007: Message edited by: Henrik Engert ]

SCJP 5.0, SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Printing in Java using printDialog