• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Printing in Java using printDialog

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Whose rules are you playing by? This tiny ad doesn't respect those rules:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic