Entry
Can I print a Microsoft Word Document that is contained in a frame?
Aug 23rd, 2001 06:00
Simon Burnett, Larsen Lockwood-Hall,
OK, this is a terrible solution but if you are forced (like i am) to
have a word document as the source for a frame and you have to provide
a link to print it, then i've not found out another way of doing it. I
am more than happy to listen to other ways of doing this.
What about using the ONLOAD event for the FRAMESET tag? The word file
will take a while to load so any HTML frames should load well before
this is fired. Use ONLOAD="window.print();" to invoke the print dialog
for the WORD window upon its loading.
There's no command you can use to actually send it as this is a
security issue. A VB object could be coded to do this but not through
javascript.
Hope this helps, if i find a better way (i'm still looking) i'll post
it. Anyone else, please post theirs and put me out of my misery.