aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Hide a print dialog while printing a receipt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Hide a print dialog while printing a receipt" Watch "Hide a print dialog while printing a receipt" New topic
Author

Hide a print dialog while printing a receipt

Pravin Shirke
Ranch Hand

Joined: Apr 05, 2008
Posts: 150

Hii all,
Need a little help in hiding the print dialog which just appears and disappears in a fraction of second.
here is the code below:

got stuck here.. please help thank you


[Vipassana] - It is seeing the reality as it is, And not as you want it to be.!!!
SCJP1.5.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19720
    
  20

Simply not calling "setVisible(true)" works for me. The only dialog I receive is the save dialog for my PDF printer, but that won't even show when using a "real" printer.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Pravin Shirke
Ranch Hand

Joined: Apr 05, 2008
Posts: 150

Thank you Rob,
for the reply but its still displaying the print window for a fraction of second then i did this in my code, i have put this code at line number 41 in the code above

using this code the window did not showed up but now the problem is that the title of the current window changes. say if the current window title is ABC it changes to XYZ for a fraction of second.
please helppp. stuck here...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Hide a print dialog while printing a receipt