Forum Moderators: open

Message Too Old, No Replies

REPOST: Print Function

button to print external pdf file

         

LYZbeth

9:31 pm on Feb 5, 2002 (gmt 0)



I need code to print an external file? (pdf) from a button in a frame. This was my first resort, and now my last. :-) I've searched endlessly on the net with no luck. VBscript, JavaScript, I don't care! Please with sugar on top?
Thanks

hasbeen

10:22 pm on Feb 5, 2002 (gmt 0)

10+ Year Member



Not sure if you've found this already or not...if not, and it works, send a nice sticky mail to tedster, for I leeched it off of one of his earlier posts.

[developer.irt.org...]

tedster

10:23 pm on Feb 5, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't know a way to print a file that is not currently loaded in the browser. Here are some kludge ideas.

You might make your "Print" link first load the pdf in the window (or in a new window.) Then use onLoad in the body tag to call the window.print() function.

If you really don't want people to see the document on screen, you might create a page which is a 0%,100% frameset and load the PDF document into the invisible 0% frame, again calling window.print() onLoad.