How do I print from a pop-up window? - TechRepublic
General discussion
February 4, 2002 at 10:38 PM
judge dread

How do I print from a pop-up window?

by judge dread . Updated 24 years, 4 months ago

I want to be able to print from the new window without using the file|print from the menu bar and do it with a link within the new window itself. HERE”S THE CODE:
order=window.open(“”,”orderWindow”,”toolbar=no,width=550,height=500,menubar=yes,resize=yes,”)
with (order.document) {
write(““)
write(“Customer’s Rental Invoice-Amount Due!“)
write(““)
write(““)
write(“

Thank you for your business, “+custname+”

“)
write(“

Please remember, we will reserve the vehicle of your choice-if you call at least 2 hours in advance.“)
write(“

Listed below is your address and the total invoice amount of your auto rental. We accept cash, major Credit Cards, and checks drawn on local banks only!
“)
write(“

Street Address: “+ address+”
“)
write(“City: “+ city+”
“)
write(“State: “+ state+”
“)
write(“Zip Code: “+ zipcode+”
“)
write(“Customer Type: “+ custype +”
“)
write(“Beginning Odometer Reading: “+ startodread+”
“)
write(“Ending Odometer Reading: “+ endodread+”
“)
write(“Total Miles Driven: “+ totalread+”
“)
write(“Days Rented: “+ daysrented +”
“)
write(“Total Mileage Charge:$ “+ totmilechg+”
“)
write(“Total Usage Charge    :$ “+ totdaychg+”

“)
write(“Total Rental Charge   :$ “+ grandtotal+”

“)
write(“Close Window

“)
Write(“

“) write(““)
}


This discussion is locked

All Comments