Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Printing in Java using printDialog

 
Henrik Engert
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic