Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print a closed page 3

Status
Not open for further replies.

snoopy75

Technical User
Joined
Aug 24, 2001
Messages
340
Location
US
I am developing a website used to generate, fill out, and print a number of forms for equipment maintenance in my facility. Ideally, what I would like is for the user to enter a couple of parameters in some form fields and click a button to print all the applicable forms, without having to open each form page and print each one individually. I am not aware of any way to print a webpage that isn't currently open in the browser. Do any of you know? Thanks! :-)

--Ryan
 
Would it work to have a single page that is all your forms, with page breaks between 'em?

If it's important that they not actually see the form, then layer it behind your working window.

Cheers,


[monkey] Edward [monkey]

"Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!" -- inventor of the cat door
 
A single page would be fine, but how would you put page breaks in a web page like that? It seems that the individual printer settings might make that difficult...

It is not terribly important that the window be invisible, but it would just be neater to print the page without having to open it first... ;-) How, then, do you open a page in the background, then tell it to print itself?

Thanks for your help with this.

--Ryan
 
Regardless of what you do, the user is going to see the normal "Print" box and will have to respond to it. So, you might as well save yourself some time and open the appropriate page to print.

When they close the window you can take them back to the starting page.



There's always a better way...
 
Hi Ryan,

Sniff here: thread216-475321

Have fun!

Cheers,


[monkey] Edward [monkey]

"Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!" -- inventor of the cat door
 
Thanks, guys... Great hints... One more thing: What's the Javascript command to print a page? :-)

--Ryan
 
window.print()

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top