Click to See Complete Forum and Search --> : Print a document that is not open??


JimMatz
07-22-2003, 02:20 PM
I want to be able to print a document that is not open. For example, I want to list all of Accountings month end reports and put a print button next to each report so that when someone is looking at the page they can just click on the print button and that will print the document automatically, without having to open each one.

Is this possible??

Somebody please help me, this is a project project I am working on!!

Thanks much in advance!!
:D

Khalid Ali
07-22-2003, 02:23 PM
javascript will print the current window in which this document is,so wyou will need to point to the document that requires to be printed.

window.print()
or
parent.frameName.print()

JimMatz
07-22-2003, 02:24 PM
So pretty much the document has to open to be printed??

Khalid Ali
07-22-2003, 02:45 PM
I think so...but I could be wrong(very little chance...:D )

turb
07-22-2003, 03:40 PM
you can use a very little frameset so you load the appropriate page into it and then print this zone.

JimMatz
07-23-2003, 07:30 AM
Thanks everybody, it looks like it's not possible to do what I was hoping!

Thanks!

turb
07-23-2003, 09:44 AM
have u try with css ... for exemple, i know that you can print a .rtf document ... so when you click on a button, it print the .rft doc and i think you never saw it at screen

something like this

<link rel="stylesheet" href="name.rtf" type="text/css" media="print">

so maybe this should work

<link rel="stylesheet" href="name.html" type="text/css" media="print">

maybe you'll found something around this

with the web .... never say impossible .... the only limit you have is u