Using windows.print() causes computer to hang. Any help will be appreciated.
Apr 6th, 2008 19:24
ha mo, Colin Fraser, Wayne Sinclair, Martin Honnen
If you are using
Then it is little wonder that things are not working, try
That may help, a simple typo will cause some problems, but I would not
have thought that it would cause the computer to hang.
There is another problem here, I suspect, and that is you are trying to
over anyone elses, so you may want to use a VB Script instead.
I pinched this from Martin Honnen a long time ago, and just adapt it to
my own immediate need when required :
<object id="WBControl" width="0" height="0"
Sub VBPrint() On Error Resume Next
from memory, not having used this for ages, I think that this last
line may also use
to stop the print confirm dialogue box from opening and annoying
onClick="self.print(); return false;">print</a>');
else if (navigator.appName.indexOf('Microsoft') != -1)
onClick="VBPrint(); return false;">print</a>');
Test this out, I know it works when I have used it, but it may take a
little while for you to figure it out. It wont take long, and you may be
pleasantly surprised by what you learn while doing it.