Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Printing Landscape


Message #1 by KATHLEEN.M.WHALEN@c... on Tue, 20 Nov 2001 15:23:14 -0500
Off the top of my head the only way I can think of would be to have a 
frameset or iframe and when they clicked the button or link to set the src 
of the frame to the word documeent and then call the print method on that 
frame.
so your onclick handler would be (with printFrame as the name of the frame):
top.frames["printFrame"].src = "myWord.doc";
top.frames["printFrame"].print();

Haen't tried this though.
Regards

Joe Fawcett



>From: KATHLEEN.M.WHALEN@c...
>Reply-To: "javascript" <javascript@p...>
>To: "javascript" <javascript@p...>
>Subject: [javascript] Printing Landscape
>Date: Tue, 20 Nov 2001 15:23:14 -0500
>
>I have a graphic that looks best when printed on landscape paper.  It's my
>understanding (and it logical) that we cannot control the user's settings
>and therefore there is no way to change the end-user printer settings to
>Landscape.  This graphic I have looks great within a word document that is
>already setup to be landscape.
>
>Is there a way to setup a printer button that will print the Word version
>of this document?  In other words I would like to have
><A href="Some.Script.Here">Print me!</a>
>
>when they click the link the Server copy (will always be the server copy)
>of my document would then print rather than the HTML page displayed on the
>screen.
>Is this possible?
>
>Thanks
>Kathleen
>
>
>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


  Return to Index