I am calling applet from one jsp which gets opened after calling window.open() function. This applet prints the certain data on a printer. porblem is that whenever user focuses control on this applet, printer gets started to print the data. how can i avoid this? or onece printer gets started for printing the data, this popup should get closed. how can i achieve this?
It sounds as if the printing code is in the "start" or possibly "init" method (which may get executed repeatedly). What you could do is to set a boolean field if the printing has been started once, and then not run the printing code again if the boolean is set.
Joined: Dec 27, 2007
Here is another problem. Initially i was calling this applet on window.open event. Now instead of that, it has to be called when base page gets load. respective changes were made, but printing is not getting started. even i am not getting any exceptions. Anybody will help me, please?
Joined: Mar 22, 2005
I don't understand what should happen when. How can the applet -which you said earlier was in a window opened from the base window- do anything if the window hasn't been opened yet? If it should do something once the base window is shown, can't you simply embed it in that page?
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
subject: How to find applet execution is completed