how to print another frame via scripting - a print-button that automaticly prints the content-frame

They have: 2 posts

Joined: Sep 1999

Hi,

I really love your "How to print via scripting"-script but I was wondering if it's possible somehow to automaticly print another frame (with my content). So the user doesn't have to click in it.
And what does the "olecmd = 6" stands for?
Thanks alot

----------
Steven Steel
http://listen.to/SonicTonic

They have: 5,633 posts

Joined: Jan 1970

Could you post the URL for the script you found then maybe I could have a look at it.

----------
[email protected]
http://go.to/hass

They have: 2 posts

Joined: Sep 1999

They have: 5,633 posts

Joined: Jan 1970

I will look in to it. Hopefully you will see a post within a day or two.

----------
[email protected]
http://go.to/hass

They have: 5,633 posts

Joined: Jan 1970

I took a look at the EONS script and I don't understand the VB part of it - but it works!

I don't think it will be possible to print another frame in Internet Explorer but shouldn't be a problem in Netscape.

From the non-printing frame insert this code:-

<form>
<input type="button" value="Print Other Frame" onClick="javascript:parent.FRAME NAME.window.print()">
</form>

I have not checked this code so it may not work properly.

----------
[email protected]
http://go.to/hass

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.